lib/custom/tests/MW/Cache/Laravel5Test.php 1 location
|
@@ 18-26 (lines=9) @@
|
| 15 |
|
private $mock; |
| 16 |
|
|
| 17 |
|
|
| 18 |
|
protected function setUp() |
| 19 |
|
{ |
| 20 |
|
if( interface_exists( '\\Illuminate\\Contracts\\Cache\\Store' ) === false ) { |
| 21 |
|
$this->markTestSkipped( 'Class \\Illuminate\\Contracts\\Cache\\Store not found' ); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
$this->mock = $this->getMockBuilder( '\\Illuminate\\Contracts\\Cache\\Store' )->getMock(); |
| 25 |
|
$this->object = new \Aimeos\MW\Cache\Laravel5( $this->mock ); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
|
| 29 |
|
protected function tearDown() |
lib/custom/tests/MW/Filesystem/LaravelTest.php 1 location
|
@@ 18-29 (lines=12) @@
|
| 15 |
|
private $object; |
| 16 |
|
|
| 17 |
|
|
| 18 |
|
protected function setUp() |
| 19 |
|
{ |
| 20 |
|
if( !interface_exists( '\\Illuminate\\Contracts\\Filesystem\\Filesystem' ) ) { |
| 21 |
|
$this->markTestSkipped( 'Install Laravel framework first' ); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
$this->mock = $this->getMockBuilder( '\\Illuminate\\Contracts\\Filesystem\\Filesystem' ) |
| 25 |
|
->disableOriginalConstructor() |
| 26 |
|
->getMock(); |
| 27 |
|
|
| 28 |
|
$this->object = new \Aimeos\MW\Filesystem\Laravel( $this->mock, sys_get_temp_dir() ); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
|
| 32 |
|
protected function tearDown() |
lib/custom/tests/MW/Logger/Laravel5Test.php 1 location
|
@@ 18-26 (lines=9) @@
|
| 15 |
|
private $object; |
| 16 |
|
|
| 17 |
|
|
| 18 |
|
protected function setUp() |
| 19 |
|
{ |
| 20 |
|
if( interface_exists( '\\Illuminate\\Contracts\\Logging\\Log' ) === false ) { |
| 21 |
|
$this->markTestSkipped( 'Class \\Illuminate\\Contracts\\Logging\\Log not found' ); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
$this->mock = $this->getMockBuilder( '\\Illuminate\\Contracts\\Logging\\Log' )->getMock(); |
| 25 |
|
$this->object = new \Aimeos\MW\Logger\Laravel5( $this->mock ); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
|
| 29 |
|
protected function tearDown() |
lib/custom/tests/MW/Session/Laravel5Test.php 1 location
|
@@ 18-26 (lines=9) @@
|
| 15 |
|
private $mock; |
| 16 |
|
|
| 17 |
|
|
| 18 |
|
protected function setUp() |
| 19 |
|
{ |
| 20 |
|
if( interface_exists( '\\Illuminate\\Session\\Store' ) === false ) { |
| 21 |
|
$this->markTestSkipped( 'Class \\Illuminate\\Session\\Store not found' ); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
$this->mock = $this->getMockBuilder( '\\Illuminate\\Session\\Store' )->getMock(); |
| 25 |
|
$this->object = new \Aimeos\MW\Session\Laravel5( $this->mock ); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
|
| 29 |
|
protected function tearDown() |