Skip to content

Commit

Permalink
✅ Fix deprecations triggered by doctrine test (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek- authored Sep 24, 2022
1 parent 90f8e1e commit 0586f16
Showing 1 changed file with 10 additions and 30 deletions.
40 changes: 10 additions & 30 deletions tests/Gaufrette/Functional/Adapter/DoctrineDbalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,53 +69,33 @@ public function shouldListKeys(): void
//these values are canonicalized to avoid wrong order or keys issue

$keys = $this->filesystem->listKeys('foo');
$this->assertEquals(
$this->assertEqualsCanonicalizing(
$this->filesystem->keys(),
$keys['keys'],
'',
0,
10,
true
$keys['keys']
);

$keys = $this->filesystem->listKeys('foo/foob');
$this->assertEquals(
$this->assertEqualsCanonicalizing(
['foo/foobar/bar.txt'],
$keys['keys'],
'',
0,
10,
true
$keys['keys']
);

$keys = $this->filesystem->listKeys('foo/');
$this->assertEquals(
$this->assertEqualsCanonicalizing(
['foo/foobar/bar.txt', 'foo/bar/buzz.txt'],
$keys['keys'],
'',
0,
10,
true
$keys['keys']
);

$keys = $this->filesystem->listKeys('foo');
$this->assertEquals(
$this->assertEqualsCanonicalizing(
['foo/foobar/bar.txt', 'foo/bar/buzz.txt', 'foobarbuz.txt', 'foo'],
$keys['keys'],
'',
0,
10,
true
$keys['keys']
);

$keys = $this->filesystem->listKeys('fooz');
$this->assertEquals(
$this->assertEqualsCanonicalizing(
[],
$keys['keys'],
'',
0,
10,
true
$keys['keys']
);
}
}

0 comments on commit 0586f16

Please sign in to comment.