This file contains hidden or 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
<?php | |
namespace App\Shop\Carousels\Repositories; | |
use App\Shop\Carousels\Carousel; | |
use App\Shop\Carousels\Exceptions\CarouselNotFoundException; | |
use App\Shop\Carousels\Exceptions\CreateCarouselErrorException; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; | |
use Illuminate\Database\QueryException; |
This file contains hidden or 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
<?php | |
namespace Tests\Unit\Carousels; | |
use Tests\TestCase; | |
class CarouselUnitTest extends TestCase | |
{ | |
/** @test */ | |
public function it_can_update_the_carousel() |
This file contains hidden or 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
<?php | |
namespace App\Shop\Carousels\Repositories; | |
use App\Shop\Carousels\Carousel; | |
use App\Shop\Carousels\Exceptions\CarouselNotFoundException; | |
use App\Shop\Carousels\Exceptions\CreateCarouselErrorException; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; | |
use Illuminate\Database\QueryException; |
This file contains hidden or 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
<?php | |
namespace Tests\Unit\Carousels; | |
use Tests\TestCase; | |
class CarouselUnitTest extends TestCase | |
{ | |
/** @test */ | |
public function it_can_delete_the_carousel() |
This file contains hidden or 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
<?php | |
namespace App\Shop\Carousels\Repositories; | |
use App\Shop\Carousels\Carousel; | |
use App\Shop\Carousels\Exceptions\CarouselNotFoundException; | |
use App\Shop\Carousels\Exceptions\CreateCarouselErrorException; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; | |
use Illuminate\Database\QueryException; |
This file contains hidden or 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
<?php | |
namespace Tests\Unit\Carousels; | |
use Tests\TestCase; | |
class CarouselUnitTest extends TestCase | |
{ | |
/** @test */ | |
public function it_should_throw_an_error_when_the_required_columns_are_not_filled() |
This file contains hidden or 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
<?php | |
namespace App\Shop\Carousels\Exceptions; | |
class CreateCarouselErrorException extends \Exception | |
{ | |
} |
This file contains hidden or 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
<?php | |
namespace Tests\Unit\Carousels; | |
use Tests\TestCase; | |
class CarouselUnitTest extends TestCase | |
{ | |
/** @test */ | |
public function it_should_throw_not_found_error_exception_when_the_carousel_is_not_found() |
This file contains hidden or 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
<?php | |
namespace App\Shop\Carousels\Repositories; | |
use App\Shop\Carousels\Carousel; | |
use App\Shop\Carousels\Exceptions\CarouselNotFoundException; | |
use App\Shop\Carousels\Exceptions\CreateCarouselErrorException; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; | |
use Illuminate\Database\QueryException; |
This file contains hidden or 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
<?php | |
namespace Tests\Unit\Carousels; | |
use Tests\TestCase; | |
class CarouselUnitTest extends TestCase | |
{ | |
/** @test */ | |
public function it_should_throw_update_error_exception_when_the_carousel_has_failed_to_update() |