Skip to content

Commit

Permalink
Rewrite CategoryMovementTest
Browse files Browse the repository at this point in the history
  • Loading branch information
poing committed May 29, 2020
1 parent 0855fbf commit ad04e5a
Show file tree
Hide file tree
Showing 4 changed files with 212 additions and 117 deletions.
5 changes: 4 additions & 1 deletion phpunit.xml
Expand Up @@ -8,7 +8,7 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
stopOnFailure="true">
<testsuites>
<testsuite name="Baseline Eloquent Test">
<directory>tests/Baseline</directory>
Expand All @@ -21,7 +21,10 @@
<file>tests/Main/Standard/CategoryCustomEventsTest.php</file>
<file>tests/Main/Standard/CategoryHierarchyTest.php</file>
<file>tests/Main/Standard/CategoryHierarchyTest.php</file>
<file>tests/Main/Standard/CategoryMovementTest.php</file>
</testsuite>


<!--
<testsuite name="Baum Under Test">
<file>tests/Main/Standard/CategoryMovementTest.php</file>
Expand Down
12 changes: 6 additions & 6 deletions tests/Main/Standard/CategoryAbstract.php
Expand Up @@ -3,18 +3,18 @@
namespace Baum\Tests\Main\Standard;

use Baum\Tests\Suite\Models\Category;
use Baum\Tests\Suite\UnitAbstract;
use Baum\Tests\Main\UnitAbstract;

class CategoryAbstract extends UnitAbstract
{
/**
* Setup the test environment.
*/
protected function setUp(): void
{
parent::setUp();
$this->catagory_create();
}
// protected function setUp(): void
// {
// parent::setUp();
// $this->catagory_create();
// }

protected function categories($name, $className = Category::class)
{
Expand Down

0 comments on commit ad04e5a

Please sign in to comment.