Completed
Push — master ( c41e60...b5caa9 )
by Aimeos
03:03
created
tests/Controller/Common/Product/Import/Csv/Cache/Attribute/StandardTest.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -14,49 +14,49 @@
 block discarded – undo
14 14
 
15 15
 	protected function setUp()
16 16
 	{
17
-		\Aimeos\MShop\Factory::setCache( true );
17
+		\Aimeos\MShop\Factory::setCache(true);
18 18
 
19 19
 		$context = \TestHelperCntl::getContext();
20
-		$this->object = new \Aimeos\Controller\Common\Product\Import\Csv\Cache\Attribute\Standard( $context );
20
+		$this->object = new \Aimeos\Controller\Common\Product\Import\Csv\Cache\Attribute\Standard($context);
21 21
 	}
22 22
 
23 23
 
24 24
 	protected function tearDown()
25 25
 	{
26
-		\Aimeos\MShop\Factory::setCache( false );
26
+		\Aimeos\MShop\Factory::setCache(false);
27 27
 		\Aimeos\MShop\Factory::clear();
28 28
 	}
29 29
 
30 30
 
31 31
 	public function testGet()
32 32
 	{
33
-		$item = $this->object->get( 'black', 'color' );
33
+		$item = $this->object->get('black', 'color');
34 34
 
35
-		$this->assertInstanceOf( '\\Aimeos\\MShop\\Attribute\\Item\\Iface', $item );
36
-		$this->assertEquals( 'black', $item->getCode() );
37
-		$this->assertEquals( 'color', $item->getType() );
35
+		$this->assertInstanceOf('\\Aimeos\\MShop\\Attribute\\Item\\Iface', $item);
36
+		$this->assertEquals('black', $item->getCode());
37
+		$this->assertEquals('color', $item->getType());
38 38
 	}
39 39
 
40 40
 
41 41
 	public function testGetUnknown()
42 42
 	{
43
-		$this->assertEquals( null, $this->object->get( 'cache-test', 'color' ) );
43
+		$this->assertEquals(null, $this->object->get('cache-test', 'color'));
44 44
 	}
45 45
 
46 46
 
47 47
 	public function testSet()
48 48
 	{
49
-		$item = $this->object->get( 'black', 'color' );
49
+		$item = $this->object->get('black', 'color');
50 50
 
51
-		$this->assertInstanceOf( '\\Aimeos\\MShop\\Attribute\\Item\\Iface', $item );
51
+		$this->assertInstanceOf('\\Aimeos\\MShop\\Attribute\\Item\\Iface', $item);
52 52
 
53
-		$item->setCode( 'cache-test' );
53
+		$item->setCode('cache-test');
54 54
 
55
-		$this->object->set( $item );
56
-		$item = $this->object->get( 'cache-test', 'color' );
55
+		$this->object->set($item);
56
+		$item = $this->object->get('cache-test', 'color');
57 57
 
58
-		$this->assertInstanceOf( '\\Aimeos\\MShop\\Attribute\\Item\\Iface', $item );
59
-		$this->assertEquals( 'cache-test', $item->getCode() );
60
-		$this->assertEquals( 'color', $item->getType() );
58
+		$this->assertInstanceOf('\\Aimeos\\MShop\\Attribute\\Item\\Iface', $item);
59
+		$this->assertEquals('cache-test', $item->getCode());
60
+		$this->assertEquals('color', $item->getType());
61 61
 	}
62 62
 }
63 63
\ No newline at end of file
Please login to merge, or discard this patch.