protected function ImporterTest::assertFields in CSV Importer 8
Assert fields.
3 calls to ImporterTest::assertFields()
- ImporterTest::testNodeCsvImporter in tests/
src/ FunctionalJavascript/ ImporterTest.php - Test node importer.
- ImporterTest::testTaxonomyTermCsvImporter in tests/
src/ FunctionalJavascript/ ImporterTest.php - Test taxonomy term importer.
- ImporterTest::testUserCsvImporter in tests/
src/ FunctionalJavascript/ ImporterTest.php - Test user importer.
File
- tests/
src/ FunctionalJavascript/ ImporterTest.php, line 132
Class
- ImporterTest
- Tests CSV importer.
Namespace
Drupal\Tests\csv_importer\FunctionalJavascriptCode
protected function assertFields() {
$assert = $this
->assertSession();
$assert
->elementTextContains('css', '.field--name-field-boolean', 'On');
$assert
->elementTextContains('css', '.field--name-field-email', 'example@example.com');
$assert
->elementContains('css', '.field--name-field-link', '<a href="http://example.com">CSV importer link title</a>');
$assert
->elementTextContains('css', '.field--name-field-timestamp', 'Fri, 01/12/2018 - 21:45');
$assert
->elementTextContains('css', '.field--name-field-list-float', '17.1');
$assert
->elementTextContains('css', '.field--name-field-list-integer', '18');
$assert
->elementTextContains('css', '.field--name-field-list-text', 'List text 3');
$assert
->elementTextContains('css', '.field--name-field-number-decimal', '17.10');
$assert
->elementTextContains('css', '.field--name-field-float-number', '17.20');
$assert
->elementTextContains('css', '.field--name-field-integer-number', '17');
$assert
->elementTextContains('css', '.field--name-field-text-plain', 'Plain text');
$assert
->elementTextContains('css', '.field--name-field-text-plain-long', 'Plain text long');
$assert
->elementTextContains('css', '.field--name-field-content-reference', 'CSV importer reference node');
$assert
->elementTextContains('css', '.field--name-field-user-reference', 'John Doe');
$assert
->elementTextContains('css', '.field--name-field-text-formatted', 'Formatted text');
$assert
->elementTextContains('css', '.field--name-field-text-formatted-long', 'Formatted text long');
$assert
->elementTextContains('css', '.field--name-field-text-formatted-summary', 'Formatted text summary');
}