MainControllerTest fix.

This commit is contained in:
Alexey Skobkin 2016-12-12 00:09:29 +03:00
parent 6f47fa344d
commit f216b4f11a

View file

@ -31,8 +31,6 @@ class MainControllerTest extends WebTestCase
// Assuming we have stats block
$this->assertEquals(1, $userStatsBlock->count(), 'Stats block not found');
// Assuming we have 3 rows in the stats block
$this->assertEquals(3, $userStatsBlock->children()->count());
// @todo rewrite to named classes
// Assuming we have at least one user shown
$this->assertGreaterThan(
@ -43,7 +41,8 @@ class MainControllerTest extends WebTestCase
// Assuming we have at least one subscriber
$this->assertGreaterThan(
0,
$userStatsBlock->children()->eq(1)->children()->last()->text()
$userStatsBlock->children()->eq(1)->children()->last()->text(),
'Zero service subscribers shows on the main page'
);
}
}