Completed
Push — master ( 19dece...05a825 )
by Tobias
04:22
created

phpbb_functional_test::test_version_check()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 12
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
/**
4
 * @group functional
5
 */
6
class phpbb_functional_test extends \tas2580\seourls\tests\base\functional_test
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
7
{
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