Skip to content

Commit 645d6cf

Browse files
authored
chore: add tests for not dimensions. (#34)
1 parent 58a6582 commit 645d6cf

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docker-compose-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
- /var/www/html/vendor
1515

1616
php_82:
17-
image: akkica/laravel-base:8.1
17+
image: akkica/laravel-base:8.2
1818
volumes:
1919
- .:/var/www/html
2020
- /var/www/html/vendor

tests/LaravelGoogleAnalyticsTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,14 @@ public function it_should_filter_dimension_with_and_group_receiving_an_filter_ob
143143

144144
$this->assertCount(18, $result->table);
145145
}
146+
147+
/** @test */
148+
public function it_should_filter_where_not_dimension()
149+
{
150+
$result = $this->analytics
151+
->whereNotDimension('browser', MatchType::CONTAINS, 'firefox')
152+
->get();
153+
154+
$this->assertCount(54, $result->table);
155+
}
146156
}

0 commit comments

Comments
 (0)