mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Add name to description for named datasets
This commit is contained in:
13
tests/Unit/Datasets.php
Normal file
13
tests/Unit/Datasets.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use Pest\Datasets;
|
||||
|
||||
it('show the names of named datasets in their description', function () {
|
||||
$descriptions = array_keys(Datasets::resolve('test description', [
|
||||
'one' => [1],
|
||||
'two' => [[2]],
|
||||
]));
|
||||
|
||||
$this->assertSame('test description with data set "one" (1)', $descriptions[0]);
|
||||
$this->assertSame('test description with data set "two" (array(2))', $descriptions[1]);
|
||||
});
|
||||
Reference in New Issue
Block a user