-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2973d1
commit db8f02e
Showing
1 changed file
with
0 additions
and
14 deletions.
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
use Spatie\Fractalistic\Fractal; | ||
use Spatie\Fractalistic\Test\TestClasses\Author; | ||
use Spatie\Fractalistic\Test\TestClasses\Book; | ||
use Spatie\Fractalistic\Test\TestClasses\Character; | ||
use Spatie\Fractalistic\Test\TestClasses\Publisher; | ||
|
||
uses() | ||
|
@@ -57,11 +56,6 @@ function getTestPublishers(): array | |
$authorA = new Author('Philip K Dick', '[email protected]'); | ||
$authorB = new Author('George R. R. Satan', '[email protected]'); | ||
|
||
$charA = new Character('Death'); | ||
$charB = new Character('Hex'); | ||
$charC = new Character('Ned Stark'); | ||
$charD = new Character('Tywin Lannister'); | ||
|
||
$bookA = new Book( | ||
'1', | ||
'Hogfather', | ||
|
@@ -84,19 +78,11 @@ function getTestPublishers(): array | |
|
||
$bookA->author = $authorA; | ||
$bookA->publisher = $publisherA; | ||
$bookA->characters = [$charA, $charB]; | ||
$authorA->characters = [$charA, $charB]; | ||
$charA->book = $bookA; | ||
$charB->book = $bookA; | ||
$publisherA->books = [$bookA]; | ||
$authorA->books = [$bookA]; | ||
|
||
$bookB->author = $authorB; | ||
$bookB->publisher = $publisherB; | ||
$bookB->characters = [$charC, $charD]; | ||
$authorB->characters = [$charC, $charD]; | ||
$charC->book = $bookB; | ||
$charD->book = $bookB; | ||
$publisherB->books = [$bookB]; | ||
$authorB->books = [$bookB]; | ||
|
||
|