eZ\Publish\Core\Persistence\Legacy\Tests\Content\Location\MapperTest::testCreateLocationsFromRows PHP Method

testCreateLocationsFromRows() public method

    public function testCreateLocationsFromRows()
    {
        $inputRows = array();
        for ($i = 0; $i < 3; ++$i) {
            $row = $this->locationRow;
            $row['node_id'] += $i;
            $inputRows[] = $row;
        }
        $mapper = new Mapper();
        $locations = $mapper->createLocationsFromRows($inputRows);
        $this->assertCount(3, $locations);
        foreach ($locations as $location) {
            $this->assertInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Location', $location);
        }
    }