@@ 51-58 (lines=8) @@ | ||
48 | } |
|
49 | ||
50 | ||
51 | public function testOnStartup() |
|
52 | { |
|
53 | $this->application->run(); |
|
54 | ||
55 | /** @var ApplicationEvent $applicationEvent */ |
|
56 | $applicationEvent = $this->eventStateStorage->getEventState(NetteApplicationEvents::ON_STARTUP); |
|
57 | $this->assertInstanceOf(Application::class, $applicationEvent->getApplication()); |
|
58 | } |
|
59 | ||
60 | ||
61 | public function testOnPresenter() |
|
@@ 61-69 (lines=9) @@ | ||
58 | } |
|
59 | ||
60 | ||
61 | public function testOnPresenter() |
|
62 | { |
|
63 | $this->application->run(); |
|
64 | ||
65 | /** @var ApplicationPresenterEvent $applicationPresenterEvent */ |
|
66 | $applicationPresenterEvent = $this->eventStateStorage->getEventState(NetteApplicationEvents::ON_PRESENTER); |
|
67 | $this->assertInstanceOf(Application::class, $applicationPresenterEvent->getApplication()); |
|
68 | $this->assertInstanceOf(Presenter::class, $applicationPresenterEvent->getPresenter()); |
|
69 | } |
|
70 | ||
71 | ||
72 | public function testOnShutdown() |
|
@@ 72-80 (lines=9) @@ | ||
69 | } |
|
70 | ||
71 | ||
72 | public function testOnShutdown() |
|
73 | { |
|
74 | $this->application->run(); |
|
75 | ||
76 | /** @var ApplicationExceptionEvent $applicationExceptionEvent */ |
|
77 | $applicationExceptionEvent = $this->eventStateStorage->getEventState(NetteApplicationEvents::ON_SHUTDOWN); |
|
78 | $this->assertInstanceOf(Application::class, $applicationExceptionEvent->getApplication()); |
|
79 | $this->assertNull($applicationExceptionEvent->getException()); |
|
80 | } |
|
81 | ||
82 | } |
|
83 |