Completed
Push — master ( ce58c6...c67fb3 )
by Henry
09:17
created

RegisterTest::testTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Redaxscript\Tests;
3
4
/**
5
 * RegisterTest
6
 *
7
 * @since 4.2.0
8
 *
9
 * @package Redaxscript
10
 * @category Tests
11
 * @author Henry Ruhs
12
 */
13
14
class RegisterTest extends TestCaseAbstract
15
{
16
	/**
17
	 * setUp
18
	 *
19
	 * @since 4.2.0
20
	 */
21
22
	public function setUp() : void
23
	{
24
		parent::setUp();
25
		$this->_driver->get('http://localhost:8000/?p=register');
26
	}
27
28
	/**
29
	 * testTitle
30
	 *
31
	 * @since 4.2.0
32
	 */
33
34
	public function testTitle() : void
35
	{
36
		/* expect and actual */
37
38
		$expect = $this->_language->get('registration') . ' - ' . $this->_language->get('_package')['name'];
39
		$actual = $this->_driver->getTitle();
40
41
		/* compare */
42
43
		$this->assertEquals($expect, $actual);
44
	}
45
}
46