public function testCompatibility() { $this->repository->selectContentType('profiles'); $values = []; for ($i = 1; $i <= 5; $i++) { $values[] = ['standort' => ['standort_name' => 'Location ' . $i]]; } $sequence = new Sequence($this->repository->getCurrentContentTypeDefinition(), 'standorte', $values); $i = 0; foreach ($sequence as $item) { $i++; $this->assertEquals('Location ' . $i, $item->getProperty('standort_name')); $this->assertEquals('standort', $item->getItemType()); } $this->assertEquals(5, $i); }