Skip to content

Commit

Permalink
Added outline tests for remaining traits
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbdaly committed Apr 9, 2018
1 parent 705b8d3 commit 7d508a6
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
16 changes: 16 additions & 0 deletions tests/Unit/Http/Traits/DeleteTest.php
@@ -0,0 +1,16 @@
<?php

namespace Tests\Unit\Http\Traits;

use Tests\TestCase;
use Mockery as m;
use Tests\Unit\Http\Controllers\DummyController;

class DeleteTest extends TestCase
{
public function testHasTrait()
{
$controller = m::mock('Tests\Unit\Http\Controllers\DummyController');
$this->assertParentHasTrait('Matthewbdaly\Harmony\Http\Traits\Delete', $controller);
}
}
16 changes: 16 additions & 0 deletions tests/Unit/Http/Traits/ShowTest.php
@@ -0,0 +1,16 @@
<?php

namespace Tests\Unit\Http\Traits;

use Tests\TestCase;
use Mockery as m;
use Tests\Unit\Http\Controllers\DummyController;

class ShowTest extends TestCase
{
public function testHasTrait()
{
$controller = m::mock('Tests\Unit\Http\Controllers\DummyController');
$this->assertParentHasTrait('Matthewbdaly\Harmony\Http\Traits\Show', $controller);
}
}
2 changes: 1 addition & 1 deletion tests/Unit/Http/Traits/StoreTest.php
Expand Up @@ -6,7 +6,7 @@
use Mockery as m;
use Tests\Unit\Http\Controllers\DummyController;

class Store extends TestCase
class StoreTest extends TestCase
{
public function testHasTrait()
{
Expand Down
16 changes: 16 additions & 0 deletions tests/Unit/Http/Traits/UpdateTest.php
@@ -0,0 +1,16 @@
<?php

namespace Tests\Unit\Http\Traits;

use Tests\TestCase;
use Mockery as m;
use Tests\Unit\Http\Controllers\DummyController;

class UpdateTest extends TestCase
{
public function testHasTrait()
{
$controller = m::mock('Tests\Unit\Http\Controllers\DummyController');
$this->assertParentHasTrait('Matthewbdaly\Harmony\Http\Traits\Update', $controller);
}
}

0 comments on commit 7d508a6

Please sign in to comment.