/** * @covers BackBee\NestedNode\Page::setWorkflowState */ public function testSetWorkflowState() { $state = new State(); $this->assertEquals($this->page, $this->page->setWorkflowState($state)); $this->assertEquals($state, $this->page->getWorkflowState()); $this->assertEquals($this->page, $this->page->setWorkflowState(null)); $this->assertNull($this->page->getWorkflowState()); }