Exemplo n.º 1
0
 protected function checkOutput()
 {
     $out = strtolower($this->grid->render());
     self::assertTrue(substr_count($out, 'tr') >= DefaultFixture::getTotalCount() * 2);
     self::assertTrue(substr_count($out, 'td') >= DefaultFixture::getTotalCount() * 2 * 2);
     self::assertContains('form', $out);
 }
 public function testDatabaseQueryBuilder()
 {
     $provider = new EloquentDataProvider(DB::table('test_users'));
     self::assertEquals(DefaultFixture::getTotalCount(), $provider->count());
 }