Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | public function testActionsJson() |
||
16 | { |
||
17 | // setup |
||
18 | $application = new TestCommonApplication(); |
||
19 | |||
20 | // test body |
||
21 | $result = $application->actionFromConfig(); |
||
|
|||
22 | |||
23 | // assertions |
||
24 | $this->assertArrayHasKey('title', $result); |
||
25 | $this->assertEquals('Some title', $result['title']); |
||
26 | |||
27 | $this->assertArrayHasKey('main', $result); |
||
28 | $this->assertInstanceOf(View::class, $result['main']); |
||
29 | |||
30 | $this->assertTrue(TestingPresenter::$actionPresenterFromConfigWasCalled); |
||
31 | } |
||
33 |