public function AcquiadamConfigFormTest::testPerformManualSync in Media: Acquia DAM 8
Tests "Perform Manual Sync" button click.
@covers ::performManualSync
File
- tests/
src/ Unit/ AcquiadamConfigFormTest.php, line 109
Class
- AcquiadamConfigFormTest
- Config form test.
Namespace
Drupal\Tests\media_acquiadam\UnitCode
public function testPerformManualSync() {
$form = [];
$form_state = $this
->getMockBuilder(FormStateInterface::class)
->getMock();
$this
->assertFalse($this->acquiaDamConfig
->performManualSync($form, $form_state));
$this->acquiaDamConfig
->method('getActiveMediaIds')
->willReturn([
0,
1,
2,
]);
$this
->assertEquals([
0,
1,
2,
], $this->acquiaDamConfig
->performManualSync($form, $form_state));
}