Passed
Push — master ( 6c6334...d4aa98 )
by Aimeos
06:24
created
tests/Controller/AdminControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 {
5 5
 	public function testIndexAction()
6 6
 	{
7
-		$response = $this->action('GET', '\Aimeos\Shop\Controller\AdminController@indexAction');
7
+		$response = $this->action( 'GET', '\Aimeos\Shop\Controller\AdminController@indexAction' );
8 8
 
9 9
 		$this->assertEquals( '302', $response->getStatusCode() );
10 10
 	}
Please login to merge, or discard this patch.
tests/Base/ConfigTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,15 +4,15 @@
 block discarded – undo
4 4
 {
5 5
 	public function testGet()
6 6
 	{
7
-		$aimeos = $this->app->make('\Aimeos\Shop\Base\Aimeos');
7
+		$aimeos = $this->app->make( '\Aimeos\Shop\Base\Aimeos' );
8 8
 
9
-		$configMock = $this->getMockBuilder('\Illuminate\Config\Repository')
10
-			->setMethods( array('get') )->getMock();
9
+		$configMock = $this->getMockBuilder( '\Illuminate\Config\Repository' )
10
+			->setMethods( array( 'get' ) )->getMock();
11 11
 
12
-		$configMock->expects( $this->exactly(4) )->method('get')
12
+		$configMock->expects( $this->exactly( 4 ) )->method( 'get' )
13 13
 			->will( $this->onConsecutiveCalls( true, 'laravel:', array(), array() ) );
14 14
 
15
-		$object = new \Aimeos\Shop\Base\Config($configMock, $aimeos);
15
+		$object = new \Aimeos\Shop\Base\Config( $configMock, $aimeos );
16 16
 
17 17
 		$this->assertInstanceOf( '\Aimeos\MW\Config\Iface', $object->get() );
18 18
 	}
Please login to merge, or discard this patch.
tests/Base/ViewTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 {
6 6
 	public function testCreateNoLocale()
7 7
 	{
8
-		$config = $this->getMockBuilder('\Illuminate\Config\Repository')->getMock();
8
+		$config = $this->getMockBuilder( '\Illuminate\Config\Repository' )->getMock();
9 9
 
10 10
 		$i18n = $this->getMockBuilder( '\Aimeos\Shop\Base\I18n' )
11 11
 			->disableOriginalConstructor()
Please login to merge, or discard this patch.
tests/Base/ContextTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 {
5 5
 	public function testGetNoLocale()
6 6
 	{
7
-		$session = $this->getMockBuilder('\Illuminate\Session\Store')->disableOriginalConstructor()->getMock();
7
+		$session = $this->getMockBuilder( '\Illuminate\Session\Store' )->disableOriginalConstructor()->getMock();
8 8
 		$config = $this->app->make( '\Aimeos\Shop\Base\Config' );
9 9
 		$locale = $this->app->make( '\Aimeos\Shop\Base\Locale' );
10 10
 		$i18n = $this->app->make( '\Aimeos\Shop\Base\I18n' );
Please login to merge, or discard this patch.
tests/Base/LocaleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 {
5 5
 	public function testGetBackend()
6 6
 	{
7
-		$mock = $this->getMockBuilder('\Illuminate\Config\Repository')->getMock();
7
+		$mock = $this->getMockBuilder( '\Illuminate\Config\Repository' )->getMock();
8 8
 		$context = $this->app->make( '\Aimeos\Shop\Base\Context' )->get( false, 'backend' );
9 9
 
10 10
 		$object = new \Aimeos\Shop\Base\Locale( $mock );
Please login to merge, or discard this patch.
tests/Base/I18nTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,19 +4,19 @@
 block discarded – undo
4 4
 {
5 5
 	public function testGet()
6 6
 	{
7
-		$aimeos = $this->app->make('\Aimeos\Shop\Base\Aimeos');
7
+		$aimeos = $this->app->make( '\Aimeos\Shop\Base\Aimeos' );
8 8
 
9
-		$configMock = $this->getMockBuilder('\Illuminate\Config\Repository')
10
-			->setMethods( array('get', 'has') )->getMock();
9
+		$configMock = $this->getMockBuilder( '\Illuminate\Config\Repository' )
10
+			->setMethods( array( 'get', 'has' ) )->getMock();
11 11
 
12
-		$configMock->expects( $this->once() )->method('has')
13
-			->will( $this->returnValue(true) );
12
+		$configMock->expects( $this->once() )->method( 'has' )
13
+			->will( $this->returnValue( true ) );
14 14
 
15
-		$configMock->expects( $this->exactly(3) )->method('get')
15
+		$configMock->expects( $this->exactly( 3 ) )->method( 'get' )
16 16
 			->will( $this->onConsecutiveCalls( true, 'laravel:', array() ) );
17 17
 
18
-		$object = new \Aimeos\Shop\Base\I18n($configMock, $aimeos);
19
-		$list = $object->get( array('en') );
18
+		$object = new \Aimeos\Shop\Base\I18n( $configMock, $aimeos );
19
+		$list = $object->get( array( 'en' ) );
20 20
 
21 21
 		$this->assertInstanceOf( '\Aimeos\MW\Translation\Iface', $list['en'] );
22 22
 	}
Please login to merge, or discard this patch.
tests/Base/AimeosTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 {
5 5
 	public function testGet()
6 6
 	{
7
-		$object = $this->app->make('\Aimeos\Shop\Base\Aimeos')->get();
7
+		$object = $this->app->make( '\Aimeos\Shop\Base\Aimeos' )->get();
8 8
 		$this->assertInstanceOf( '\Aimeos\Bootstrap', $object );
9 9
 	}
10 10
 
11 11
 
12 12
 	public function testGetVersion()
13 13
 	{
14
-		$object = $this->app->make('\Aimeos\Shop\Base\Aimeos');
14
+		$object = $this->app->make( '\Aimeos\Shop\Base\Aimeos' );
15 15
 		$this->assertInternalType( 'string', $object->getVersion() );
16 16
 	}
17 17
 }
Please login to merge, or discard this patch.
tests/Command/CacheCommandTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 {
5 5
 	public function testSetupCommand()
6 6
 	{
7
-		$this->assertEquals(0, $this->artisan('aimeos:cache', array('site' => 'unittest')));
7
+		$this->assertEquals( 0, $this->artisan( 'aimeos:cache', array( 'site' => 'unittest' ) ) );
8 8
 	}
9 9
 }
Please login to merge, or discard this patch.
tests/Command/JobsCommandTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 {
5 5
 	public function testJobsCommand()
6 6
 	{
7
-		$this->assertEquals(0, $this->artisan('aimeos:jobs', array('jobs' => 'customer/email/watch', 'site' => 'unittest')));
7
+		$this->assertEquals( 0, $this->artisan( 'aimeos:jobs', array( 'jobs' => 'customer/email/watch', 'site' => 'unittest' ) ) );
8 8
 	}
9 9
 }
Please login to merge, or discard this patch.