Skip to content

Commit 5cdd0a0

Browse files
bwoodhigidi
authored andcommitted
Modify testInsertCassetteEjectExisting() to ensure that resetIndex() is called as part of eject() and insertCassette().
1 parent 1011e40 commit 5cdd0a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Unit/VideorecorderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ public function testInsertCassetteEjectExisting(): void
3434
$configuration->enableLibraryHooks([]);
3535
$videorecorder = $this->getMockBuilder('\VCR\Videorecorder')
3636
->setConstructorArgs([$configuration, new HttpClient(), VCRFactory::getInstance()])
37-
->setMethods(['eject'])
37+
->setMethods(['eject', 'resetIndex'])
3838
->getMock();
3939

4040
$videorecorder->expects($this->exactly(2))->method('eject');
41+
$videorecorder->expects($this->exactly(2))->method('resetIndex');
4142

4243
$videorecorder->turnOn();
4344
$videorecorder->insertCassette('cassette1');

0 commit comments

Comments
 (0)