public function FeedClearHandlerTest::testClear in Feeds 8.3
@covers ::clear
File
- tests/
src/ Unit/ FeedClearHandlerTest.php, line 76
Class
- FeedClearHandlerTest
- @coversDefaultClass \Drupal\feeds\FeedClearHandler @group feeds
Namespace
Drupal\Tests\feeds\UnitCode
public function testClear() {
$this->feed
->expects($this
->exactly(2))
->method('progressClearing')
->will($this
->onConsecutiveCalls(0.5, 1.0));
$this->handler
->clear($this->feed, $this->context);
$this
->assertSame($this->context['finished'], 0.5);
$this->handler
->clear($this->feed, $this->context);
$this
->assertSame($this->context['finished'], 1.0);
}