/** * @coversNothing */ public function testLoadCount() { $count = City::where('countryId', 2)->loadCount(); $this->assertSame(2, $count); $this->assertQueries(['SELECT COUNT(`City`.`id`) AS `countAll` FROM `City` WHERE (`countryId` = 2)']); }
/** * @coversNothing */ public function testLoadCount() { $count = City::where('countryId', 2)->loadCount(); $this->assertSame(2, $count); $this->assertQueries(['SELECT COUNT(`City`.`id`) AS `countAll` FROM `City` WHERE (`countryId` = 2)']); }