Completed
Push — master ( dd223a...70a284 )
by Aimeos
01:50
created
admin/jsonadm/tests/Admin/JsonAdm/Service/Config/StandardTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 		$this->context = \TestHelperJadm::getContext();
23 23
 		$this->view = $this->context->getView();
24 24
 
25
-		$this->object = new \Aimeos\Admin\JsonAdm\Service\Config\Standard( $this->context, $this->view, $templatePaths, 'service/config' );
25
+		$this->object = new \Aimeos\Admin\JsonAdm\Service\Config\Standard($this->context, $this->view, $templatePaths, 'service/config');
26 26
 	}
27 27
 
28 28
 
@@ -32,20 +32,20 @@  discard block
 block discarded – undo
32 32
 			'id' => 'DirectDebit,Category',
33 33
 			'type' => 'payment',
34 34
 		);
35
-		$helper = new \Aimeos\MW\View\Helper\Param\Standard( $this->view, $params );
36
-		$this->view->addHelper( 'param', $helper );
35
+		$helper = new \Aimeos\MW\View\Helper\Param\Standard($this->view, $params);
36
+		$this->view->addHelper('param', $helper);
37 37
 
38
-		$response = $this->object->get( $this->view->request(), $this->view->response() );
39
-		$result = json_decode( (string) $response->getBody(), true );
38
+		$response = $this->object->get($this->view->request(), $this->view->response());
39
+		$result = json_decode((string) $response->getBody(), true);
40 40
 
41
-		$this->assertEquals( 200, $response->getStatusCode() );
42
-		$this->assertEquals( 1, count( $response->getHeader( 'Content-Type' ) ) );
41
+		$this->assertEquals(200, $response->getStatusCode());
42
+		$this->assertEquals(1, count($response->getHeader('Content-Type')));
43 43
 
44
-		$this->assertEquals( 2, $result['meta']['total'] );
45
-		$this->assertInternalType( 'array', $result['data'] );
46
-		$this->assertEquals( 'category.include', $result['data'][0]['id'] );
47
-		$this->assertEquals( 'category.exclude', $result['data'][1]['id'] );
44
+		$this->assertEquals(2, $result['meta']['total']);
45
+		$this->assertInternalType('array', $result['data']);
46
+		$this->assertEquals('category.include', $result['data'][0]['id']);
47
+		$this->assertEquals('category.exclude', $result['data'][1]['id']);
48 48
 
49
-		$this->assertArrayNotHasKey( 'errors', $result );
49
+		$this->assertArrayNotHasKey('errors', $result);
50 50
 	}
51 51
 }
52 52
\ No newline at end of file
Please login to merge, or discard this patch.