Skip to content

Commit 28288d7

Browse files
committed
tests fixed.
1 parent 9a81e29 commit 28288d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Integration/Service/Generator/Definition/IndexDefinitionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ public function testGenerateResultShouldWork(): array
4444
}
4545

4646
/**
47-
* @param array $result
47+
* @param array $result
4848
*/
4949
#[Depends('testGenerateResultShouldWork')]
5050
public function testIndexWorks(array $result): void
5151
{
5252
/**
5353
* @var IndexEntity $index
5454
*/
55-
$index = $result['testi'];
55+
$index = $result[1];
5656
$this->assertEquals('index', $index->getType());
5757
$this->assertEquals('testi', $index->getName());
5858
$this->assertEquals(
@@ -64,15 +64,15 @@ public function testIndexWorks(array $result): void
6464
}
6565

6666
/**
67-
* @param array $result
67+
* @param array $result
6868
*/
6969
#[Depends('testGenerateResultShouldWork')]
7070
public function testUniqueIndexWorks(array $result): void
7171
{
7272
/**
7373
* @var IndexEntity $index
7474
*/
75-
$index = $result['fields_test_medium_int_unique'];
75+
$index = $result[0];
7676
$this->assertEquals('unique', $index->getType());
7777
$this->assertEquals(
7878
[

0 commit comments

Comments
 (0)