Tidying
This commit is contained in:
parent
034e896a4c
commit
e54d57a322
|
@ -29,10 +29,10 @@ class PickerTest extends TestCase
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
$picker = new Picker();
|
$hosts = (new Picker())
|
||||||
$picker->setHosts(collect($data));
|
->setHosts(collect($data))
|
||||||
|
->getHosts();
|
||||||
|
|
||||||
$hosts = $picker->getHosts();
|
|
||||||
$this->assertInstanceOf(Collection::class, $hosts);
|
$this->assertInstanceOf(Collection::class, $hosts);
|
||||||
$this->assertCount(5, $hosts);
|
$this->assertCount(5, $hosts);
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ class PickerTest extends TestCase
|
||||||
/** @test */
|
/** @test */
|
||||||
public function comments_for_multiple_events_are_flattened_and_combined()
|
public function comments_for_multiple_events_are_flattened_and_combined()
|
||||||
{
|
{
|
||||||
$comments = [
|
$data = [
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
'comment' => 'Great talk!',
|
'comment' => 'Great talk!',
|
||||||
|
@ -59,12 +59,12 @@ class PickerTest extends TestCase
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
$picker = new Picker();
|
$comments = (new Picker())
|
||||||
$picker->setComments(collect($comments));
|
->setComments(collect($data))
|
||||||
|
->getComments();
|
||||||
|
|
||||||
$result = $picker->getComments();
|
$this->assertInstanceOf(Collection::class, $comments);
|
||||||
$this->assertInstanceOf(Collection::class, $result);
|
$this->assertCount(3, $comments);
|
||||||
$this->assertCount(3, $result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @test */
|
/** @test */
|
||||||
|
|
Loading…
Reference in a new issue