Passed
Push — master ( 1ef03e...57f11e )
by Aimeos
03:02
created
lib/custom/tests/MShop/Customer/Manager/Lists/Type/FosUserTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
 	public function testGetItem()
61 61
 	{
62 62
 		$search = $this->object->createSearch();
63
-		$search->setSlice(0, 1);
64
-		$results = $this->object->searchItems($search);
63
+		$search->setSlice( 0, 1 );
64
+		$results = $this->object->searchItems( $search );
65 65
 
66
-		if( ( $expected = reset($results) ) === false ) {
66
+		if( ( $expected = reset( $results ) ) === false ) {
67 67
 			throw new \RuntimeException( 'No list type item found' );
68 68
 		}
69 69
 
@@ -74,14 +74,14 @@  discard block
 block discarded – undo
74 74
 	public function testSaveUpdateDeleteItem()
75 75
 	{
76 76
 		$search = $this->object->createSearch();
77
-		$search->setSlice(0, 1);
78
-		$results = $this->object->searchItems($search);
77
+		$search->setSlice( 0, 1 );
78
+		$results = $this->object->searchItems( $search );
79 79
 
80
-		if( ( $item = reset($results) ) === false ) {
80
+		if( ( $item = reset( $results ) ) === false ) {
81 81
 			throw new \RuntimeException( 'No type item found' );
82 82
 		}
83 83
 
84
-		$item->setId(null);
84
+		$item->setId( null );
85 85
 		$item->setCode( 'unitTestInit' );
86 86
 		$resultSaved = $this->object->saveItem( $item );
87 87
 		$itemSaved = $this->object->getItem( $item->getId() );
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 		$this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultSaved );
121 121
 		$this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultUpd );
122 122
 
123
-		$this->setExpectedException('\\Aimeos\\MShop\\Exception');
123
+		$this->setExpectedException( '\\Aimeos\\MShop\\Exception' );
124 124
 		$this->object->getItem( $itemSaved->getId() );
125 125
 	}
126 126
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 		$expr[] = $search->compare( '==', 'customer.lists.type.editor', $this->editor );
143 143
 
144 144
 		$search->setConditions( $search->combine( '&&', $expr ) );
145
-		$search->setSlice(0, 1);
145
+		$search->setSlice( 0, 1 );
146 146
 
147 147
 		$results = $this->object->searchItems( $search, [], $total );
148 148
 		$this->assertEquals( 1, count( $results ) );
Please login to merge, or discard this patch.