public function testCategories() { $expected = ['foo', 'bar']; $this->assertNull($this->action->getCategories()); $this->assertSame($this->action, $this->action->setCategories($expected)); $this->assertEquals($expected, $this->action->getCategories()); }