| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function testInstagramAdmin() |
||
| 14 | { |
||
| 15 | $this->logInWithPermission('ADMIN'); |
||
| 16 | |||
| 17 | $instagramAdmin = InstagramAdmin::singleton(); |
||
| 18 | |||
| 19 | $instagramPost = InstagramPost::create(); |
||
| 20 | $instagramPost->ImageThumbnailURL = 'https://via.placeholder.com/300/000/000.png'; |
||
| 21 | $instagramPost->write(); |
||
| 22 | |||
| 23 | $response = $this->get($instagramAdmin->Link()); |
||
| 24 | |||
| 25 | $this->assertEquals(200, $response->getStatusCode()); |
||
| 26 | $this->assertPartialMatchBySelector( |
||
| 27 | '.breadcrumbs-wrapper .crumb.last', |
||
| 28 | ['Instagram'] |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |