| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 3 | class AccountTest extends \LocalWebTestCase |
||
| 4 | { |
||
| 5 | public function testIndexAction() |
||
| 6 | { |
||
| 7 | $response = $this->call( 'GET', '/unittest/profile' ); |
||
| 8 | |||
| 9 | $this->assertEquals( 200, $response->getStatusCode() ); |
||
| 10 | $this->assertStringContainsString( 'account-profile', (string) $response->getBody() ); |
||
| 11 | $this->assertStringContainsString( 'account-history', (string) $response->getBody() ); |
||
| 12 | $this->assertStringContainsString( 'account-favorite', (string) $response->getBody() ); |
||
| 13 | $this->assertStringContainsString( 'account-watch', (string) $response->getBody() ); |
||
| 14 | } |
||
| 15 | |||
| 16 | |||
| 17 | public function testIndexActionFavorite() |
||
| 18 | { |
||
| 19 | $response = $this->call( 'GET', '/unittest/profile/favorite' ); |
||
| 20 | |||
| 21 | $this->assertEquals( 200, $response->getStatusCode() ); |
||
| 22 | $this->assertStringContainsString( 'account-favorite', (string) $response->getBody() ); |
||
| 23 | } |
||
| 24 | |||
| 25 | |||
| 26 | public function testIndexActionWatch() |
||
| 32 | } |
||
| 33 | |||
| 34 | |||
| 35 | public function testDownloadAction() |
||
| 40 | } |
||
| 41 | } |
||
| 42 |