Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added outline tests for remaining traits
- Loading branch information
1 parent
705b8d3
commit 7d508a6
Showing
4 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |