/** * @depends testConstruct * * @param \Xpressengine\Plugin\PluginEntity $entity */ public function testToArray($entity) { $this->assertEquals('plugin_sample', $entity->toArray()['id']); }