Skip to content

Commit 83b62e9

Browse files
committed
SQLCountWithArray - ArrayToString conversion: test
1 parent 686ab36 commit 83b62e9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/TDBMDaoGeneratorTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,4 +2169,19 @@ public function testMethodNameConflictsBetweenRegularAndAutoPivotProperties()
21692169
$artist->getChildrenByArtistsRelations(); // auto-pivot relationship
21702170
$this->assertEquals(1, 1);
21712171
}
2172+
2173+
/**
2174+
* @depends testDaoGeneration
2175+
*/
2176+
public function testSQLCountWithArray(): void
2177+
{
2178+
$userDao = new TestUserDao($this->tdbmService);
2179+
$countryDao = new CountryDao($this->tdbmService);
2180+
2181+
$country = $countryDao->getById(2);
2182+
2183+
// Let's test filter bags by bean and filter bag with many values.
2184+
$users = $userDao->getUsersByComplexFilterBag($country, ['John Doe', 'John Smith'])->take(0, 1);
2185+
$this->assertEquals(1, $users->count());
2186+
}
21722187
}

0 commit comments

Comments
 (0)