Skip to content

Instantly share code, notes, and snippets.

@jsdecena
Created March 8, 2018 00:53
Show Gist options
  • Save jsdecena/86e566d2f9e26becf727afa77377f029 to your computer and use it in GitHub Desktop.
Save jsdecena/86e566d2f9e26becf727afa77377f029 to your computer and use it in GitHub Desktop.
Carousel Unit Test File
<?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->expectException(CreateCarouselErrorException::class);
$carouselRepo = new CarouselRepository(new Carousel);
$carouselRepo->createCarousel([]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment