public static function ImporterTest::assertMockImportEventsCalled in GatherContent 8.4
Assert import's events are called.
1 call to ImporterTest::assertMockImportEventsCalled()
- ImporterTest::testImport in tests/
src/ Kernel/ ImporterTest.php - Test the import function.
File
- tests/
src/ Kernel/ ImporterTest.php, line 54
Class
- ImporterTest
- Tests for the importer class.
Namespace
Drupal\Tests\gathercontent\KernelCode
public static function assertMockImportEventsCalled() {
static::assertEquals(1, MockGcEventSubscriber::$postNodeSaveCalled, 'The post node save event should only be dispatched once.');
static::assertEquals(1, MockGcEventSubscriber::$preNodeSaveCalled, 'The pre node save event should only be dispatched once.');
}