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

phpbb_functional_test   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_version_check() 0 12 1
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