Skip to content
This repository has been archived by the owner on Sep 13, 2018. It is now read-only.

Commit

Permalink
Fix test name and indentation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Mar 14, 2015
1 parent 6c2a3b1 commit fea53db
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions tests/FaktoryBuildTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use AdamWathan\Faktory\Faktory;

class FaktoryTest extends \PHPUnit_Framework_TestCase
class FaktoryBuildTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
Expand Down Expand Up @@ -57,7 +57,7 @@ public function test_can_define_factory_with_name_and_override_attribute()
});
$album = $this->faktory->build('album_with_artist', [
'artist' => 'Randy Rhoads'
]);
]);

$this->assertInstanceOf('BuildAlbum', $album);
$this->assertSame('Bark at the moon', $album->name);
Expand Down Expand Up @@ -222,7 +222,7 @@ public function test_can_can_override_attribute_when_building_list()
});
$albums = $this->faktory->buildMany('album_with_artist', 5, [
'artist' => 'Dio'
]);
]);

$this->assertSame(5, count($albums));
foreach ($albums as $album) {
Expand All @@ -240,13 +240,13 @@ public function test_can_can_override_attributes_independently_when_building_lis
});
$albums = $this->faktory->buildMany('album_with_artist', 5, [
'artist' => [
'Dio',
'Black Sabbath',
'Diamondhead',
'Iron Maiden',
'Judas Priest'
'Dio',
'Black Sabbath',
'Diamondhead',
'Iron Maiden',
'Judas Priest'
]
]);
]);

$this->assertSame(5, count($albums));
$this->assertInstanceOf('BuildAlbum', $albums[0]);
Expand Down Expand Up @@ -279,14 +279,14 @@ public function test_can_can_override_attributes_independently_and_as_a_group_wh
});
$albums = $this->faktory->buildMany('album_with_artist', 3, [
'artist' => [
'Dio',
'Black Sabbath',
'Diamondhead',
'Iron Maiden',
'Judas Priest'
'Dio',
'Black Sabbath',
'Diamondhead',
'Iron Maiden',
'Judas Priest'
],
'release_date' => '2001-05-06'
]);
]);

$this->assertSame(3, count($albums));
$this->assertInstanceOf('BuildAlbum', $albums[0]);
Expand Down Expand Up @@ -338,7 +338,7 @@ public function test_can_use_closures_as_overrides()
'length' => function () {
return 50;
}
]);
]);

$this->assertSame(50, $song->length);
}
Expand All @@ -354,7 +354,7 @@ public function test_closure_overrides_still_receive_params()
'length' => function ($f, $i) {
return $f->name . $i;
}
]);
]);

$this->assertSame('Suicide solution1', $song->length);
}
Expand Down

0 comments on commit fea53db

Please sign in to comment.