You are here

protected function FeedsBrowserTestBase::batchImport in Feeds 8.3

Starts a batch import.

Parameters

\Drupal\feeds\FeedInterface $feed: The feed to import.

8 calls to FeedsBrowserTestBase::batchImport()
ExpireTest::testExpireItemsWithBatch in tests/src/Functional/ExpireTest.php
Tests expiring items when doing an import in the UI.
FieldValidationTest::testTextFieldValidation in tests/src/Functional/FieldValidationTest.php
Tests text field validation.
HttpFetcherTest::testChangedSource in tests/src/Functional/Feeds/Fetcher/HttpFetcherTest.php
Tests if a changed source is refetched.
HttpFetcherTest::testHttpCacheDisabled in tests/src/Functional/Feeds/Fetcher/HttpFetcherTest.php
Tests if nothing gets cached when disabling HTTP Caching.
PasswordTest::test in tests/src/Functional/Feeds/Target/PasswordTest.php
Tests if users with passwords can login after import.

... See full list

File

tests/src/Functional/FeedsBrowserTestBase.php, line 67

Class

FeedsBrowserTestBase
Provides a base class for Feeds functional tests.

Namespace

Drupal\Tests\feeds\Functional

Code

protected function batchImport(FeedInterface $feed) {
  $this
    ->drupalGet('feed/' . $feed
    ->id() . '/import');
  $this
    ->submitForm([], 'Import');
}