Skip to content

Commit 01772bf

Browse files
committed
Refactor to isolate make a test less dependend
This way it would have detected #93
1 parent adea8fb commit 01772bf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/Provider/FileProviderTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,10 @@ public function testCleanUp()
170170
$this->mockMessageAge($id, 3600);
171171

172172
$provider->cleanUp();
173-
$messages = $provider->receive();
174-
$this->assertEmpty($messages);
173+
174+
$finder = new Finder();
175+
$files = $finder->files()->in($this->basePath . DIRECTORY_SEPARATOR . $this->queueHash);
176+
$this->assertCount(0, $files);
175177
}
176178

177179
/**

0 commit comments

Comments
 (0)