Skip to content

Commit

Permalink
Fixed test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wimski committed May 7, 2020
1 parent d9c92a1 commit a4e2721
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/CloneableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
// Deps
use Bkwld\Cloner\Stubs\Article;
use Mockery as m;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use PHPUnit\Framework\TestCase;

/**
* Test the trait
*/
class CloneableTest extends TestCase {

use MockeryPHPUnitIntegration;

public function testDuplicate() {

m::mock('alias:App', [
Expand Down
4 changes: 3 additions & 1 deletion tests/FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
use League\Flysystem\Vfs\VfsAdapter as Adapter;
use League\Flysystem\MountManager;
use Mockery as m;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use VirtualFileSystem\FileSystem as Vfs;
use PHPUnit\Framework\TestCase;

class FunctionalTest extends TestCase
{
use MockeryPHPUnitIntegration;

private $article;

Expand Down Expand Up @@ -56,7 +58,7 @@ protected function initUpchuck()
*/
protected function mockEvents()
{
return m::mock('Illuminate\Contracts\Events\Dispatcher', ['dispatch' => null]);
return m::mock('Illuminate\Events\Dispatcher', ['dispatch' => null]);
}

// https://github.com/laracasts/TestDummy/blob/master/tests/FactoryTest.php#L18
Expand Down
5 changes: 4 additions & 1 deletion tests/ServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
// Deps
use Bkwld\Cloner\ServiceProvider;
use Mockery as m;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use PHPUnit\Framework\TestCase;


class ServiceProviderTest extends TestCase {

use MockeryPHPUnitIntegration;

function testProvides() {
$app = m::mock('Illuminate\Foundation\Application');
$provider = new ServiceProvider($app);
Expand All @@ -27,4 +30,4 @@ function testRegister() {
$provider->register();
}

}
}

0 comments on commit a4e2721

Please sign in to comment.