* Test the field item list when accessing an index.
*/
public function testArrayIndex() {
- $this->assertEquals('published', $this->testNode->moderation_state[0]->value);
+ $this->assertFalse($this->testNode->isPublished());
+ $this->assertEquals('draft', $this->testNode->moderation_state[0]->value);
}
/**
foreach ($this->testNode->moderation_state as $item) {
$states[] = $item->value;
}
- $this->assertEquals(['published'], $states);
+ $this->assertEquals(['draft'], $states);
}
}