| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function testEntityBrowserUI() { |
||
| 30 | $account = $this->drupalCreateUser([ |
||
| 31 | 'administer entity browsers', |
||
| 32 | 'access test_entity_browser_iframe entity browser pages', |
||
| 33 | ]); |
||
| 34 | $this->drupalLogin($account); |
||
| 35 | // Go to the entity browser iframe link. |
||
| 36 | $this->drupalGet('/entity-browser/iframe/test_entity_browser_iframe'); |
||
| 37 | $this->assertRaw('Select'); |
||
| 38 | $this->drupalGet('/admin/config/content/entity_browser/test_entity_browser_iframe'); |
||
| 39 | $edit = [ |
||
| 40 | 'submit_text' => 'Different', |
||
| 41 | ]; |
||
| 42 | $this->drupalPostForm(NULL, $edit, 'Next'); |
||
| 43 | $this->drupalGet('/admin/config/content/entity_browser/test_entity_browser_iframe/widgets'); |
||
| 44 | $this->drupalPostForm(NULL, [], 'Finish'); |
||
| 45 | $this->drupalGet('/entity-browser/iframe/test_entity_browser_iframe'); |
||
| 46 | $this->assertRaw('Different'); |
||
| 47 | } |
||
| 48 | |||
| 50 |