Skip to content

Commit

Permalink
Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack97 committed Feb 24, 2019
1 parent 5307bd7 commit a692c32
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions tests/HasMediaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ function ($media) {
);
}

/** @test */
public function it_will_perform_the_registered_conversions_when_media_is_attached()
{
Queue::fake();

$media = factory(Media::class, 2)->create();

$this->subject->attachMedia($media, 'converted-images');

Queue::assertPushed(PerformConversions::class, 2);
}

/** @test */
public function it_can_get_all_the_media_in_the_default_group()
{
Expand Down Expand Up @@ -262,16 +274,4 @@ public function it_can_detach_all_the_media_in_a_specified_group()
$this->assertCount(1, $this->subject->getMedia('two'));
$this->assertEquals($mediaTwo->id, $this->subject->getFirstMedia('two')->id);
}

/** @test */
public function it_will_perform_conversions_when_media_is_attached()
{
Queue::fake();

$media = factory(Media::class, 2)->create();

$this->subject->attachMedia($media, 'converted-images');

Queue::assertPushed(PerformConversions::class, 2);
}
}
4 changes: 2 additions & 2 deletions tests/MediaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function it_can_get_the_full_path_to_a_converted_image()
}

/** @test */
public function it_can_get_the_url_of_the_file()
public function it_can_get_the_url_to_the_file()
{
$media = Mockery::mock(Media::class)->makePartial();

Expand All @@ -113,7 +113,7 @@ public function it_can_get_the_url_of_the_file()
}

/** @test */
public function it_can_get_the_url_of_a_converted_image()
public function it_can_get_the_url_to_a_converted_image()
{
$media = Mockery::mock(Media::class)->makePartial();

Expand Down

0 comments on commit a692c32

Please sign in to comment.