| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | public function test_version_check() |
||
| 9 | { |
||
| 10 | // Log in to the ACP |
||
| 11 | $this->login(); |
||
| 12 | $this->admin_login(); |
||
| 13 | $this->add_lang('acp/extensions'); |
||
| 14 | // Load the Pages extension details |
||
| 15 | $crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=details&ext_name=tas2580%2Fseourls&sid=' . $this->sid); |
||
| 16 | // Assert extension is up to date |
||
| 17 | $this->assertGreaterThan(0, $crawler->filter('.successbox')->count()); |
||
| 18 | $this->assertContains($this->lang('UP_TO_DATE', 'SEO URLs'), $crawler->text()); |
||
| 19 | } |
||
| 20 | } |
||
| 21 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.