public function testSchemaCreation() { $this->endpoint->webservice()->driver()->client($this->_clientMock('get', '/custom_fields.json', [], ['custom_fields' => [['id' => 1, 'name' => 'Some boolean', 'customized_type' => 'issue', 'field_format' => 'bool', 'regexp' => '', 'default_value' => '', 'visible' => true], ['id' => 2, 'name' => 'Some integer', 'customized_type' => 'user', 'field_format' => 'int', 'regexp' => '', 'default_value' => '', 'visible' => true]]])); $schema = $this->endpoint->schema(); $this->assertInstanceOf('\\CvoTechnologies\\Redmine\\Schema', $schema); $this->assertEquals('issues', $schema->name()); }
public function initialize(array $config) { parent::initialize($config); $this->schema(new Schema($this->endpoint())); }