Passed
Push — master ( 34b220...5825b4 )
by Aimeos
04:15
created
lib/custom/tests/MW/Session/Typo3Test.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
21 21
 	protected function setUp() : void
22 22
 	{
23 23
 		$mock = new \TYPO3\CMS\Core\Authentication\AbstractUserAuthentication();
24
-		$this->object = new \Aimeos\MW\Session\Typo3($mock);
24
+		$this->object = new \Aimeos\MW\Session\Typo3( $mock );
25 25
 	}
26 26
 
27 27
 
28 28
 	protected function tearDown() : void
29 29
 	{
30
-		unset($this->object);
30
+		unset( $this->object );
31 31
 	}
32 32
 
33 33
 
@@ -42,19 +42,19 @@  discard block
 block discarded – undo
42 42
 
43 43
 	public function testGet()
44 44
 	{
45
-		$this->assertEquals('', $this->object->get('test'));
45
+		$this->assertEquals( '', $this->object->get( 'test' ) );
46 46
 
47
-		$this->object->set('test', '123456789');
48
-		$this->assertEquals('123456789', $this->object->get('test'));
47
+		$this->object->set( 'test', '123456789' );
48
+		$this->assertEquals( '123456789', $this->object->get( 'test' ) );
49 49
 	}
50 50
 
51 51
 
52 52
 	public function testSet()
53 53
 	{
54
-		$this->object->set('test', '123');
54
+		$this->object->set( 'test', '123' );
55 55
 		$this->assertEquals( '123', $this->object->get( 'test' ) );
56 56
 
57
-		$this->object->set('test', '234');
57
+		$this->object->set( 'test', '234' );
58 58
 		$this->assertEquals( '234', $this->object->get( 'test' ) );
59 59
 	}
60 60
 }
Please login to merge, or discard this patch.
lib/custom/tests/MShop/Customer/Manager/Lists/Typo3Test.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	public function testGetItem()
54 54
 	{
55 55
 		$search = $this->object->createSearch();
56
-		$search->setSlice(0, 1);
56
+		$search->setSlice( 0, 1 );
57 57
 		$results = $this->object->searchItems( $search );
58 58
 
59 59
 		if( ( $item = reset( $results ) ) === false ) {
@@ -67,14 +67,14 @@  discard block
 block discarded – undo
67 67
 	public function testSaveUpdateDeleteItem()
68 68
 	{
69 69
 		$search = $this->object->createSearch();
70
-		$search->setSlice(0, 1);
70
+		$search->setSlice( 0, 1 );
71 71
 		$items = $this->object->searchItems( $search );
72 72
 
73 73
 		if( ( $item = reset( $items ) ) === false ) {
74 74
 			throw new \RuntimeException( 'No item found' );
75 75
 		}
76 76
 
77
-		$item->setId(null);
77
+		$item->setId( null );
78 78
 		$item->setDomain( 'unittest' );
79 79
 		$resultSaved = $this->object->saveItem( $item );
80 80
 		$itemSaved = $this->object->getItem( $item->getId() );
@@ -98,12 +98,12 @@  discard block
 block discarded – undo
98 98
 		$this->assertEquals( $item->getDateEnd(), $itemSaved->getDateEnd() );
99 99
 		$this->assertEquals( $item->getPosition(), $itemSaved->getPosition() );
100 100
 		$this->assertEquals( $this->editor, $itemSaved->getEditor() );
101
-		$this->assertStringStartsWith(date('Y-m-d', time()), $itemSaved->getTimeCreated());
102
-		$this->assertStringStartsWith(date('Y-m-d', time()), $itemSaved->getTimeModified());
101
+		$this->assertStringStartsWith( date( 'Y-m-d', time() ), $itemSaved->getTimeCreated() );
102
+		$this->assertStringStartsWith( date( 'Y-m-d', time() ), $itemSaved->getTimeModified() );
103 103
 
104 104
 		$this->assertEquals( $this->editor, $itemSaved->getEditor() );
105 105
 		$this->assertRegExp( '/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeCreated() );
106
-		$this->assertRegExp('/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeModified() );
106
+		$this->assertRegExp( '/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeModified() );
107 107
 
108 108
 		$this->assertEquals( $itemExp->getId(), $itemUpd->getId() );
109 109
 		$this->assertEquals( $itemExp->getSiteId(), $itemUpd->getSiteId() );
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 		$this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultSaved );
123 123
 		$this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultUpd );
124 124
 
125
-		$this->expectException('\\Aimeos\\MShop\\Exception');
125
+		$this->expectException( '\\Aimeos\\MShop\\Exception' );
126 126
 		$this->object->getItem( $itemSaved->getId() );
127 127
 	}
128 128
 
@@ -186,10 +186,10 @@  discard block
 block discarded – undo
186 186
 
187 187
 	public function testGetSubManager()
188 188
 	{
189
-		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type') );
190
-		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type', 'Typo3') );
189
+		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type' ) );
190
+		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type', 'Typo3' ) );
191 191
 
192
-		$this->expectException('\\Aimeos\\MShop\\Exception');
193
-		$this->object->getSubManager('unknown');
192
+		$this->expectException( '\\Aimeos\\MShop\\Exception' );
193
+		$this->object->getSubManager( 'unknown' );
194 194
 	}
195 195
 }
Please login to merge, or discard this patch.