function RowTest::testRowWithoutData

Same name and namespace in other branches
  1. 8.9.x core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testRowWithoutData()
  2. 10 core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testRowWithoutData()
  3. 11.x core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testRowWithoutData()

Tests object creation: empty.

File

core/modules/migrate/tests/src/Unit/RowTest.php, line 88

Class

RowTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21migrate%21src%21Row.php/class/Row/9" title="Stores a row." class="local">\Drupal\migrate\Row</a> @group migrate

Namespace

Drupal\Tests\migrate\Unit

Code

public function testRowWithoutData() {
    $row = new Row();
    $this->assertSame([], $row->getSource(), 'Empty row');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.