useTransaction(); $this->_params = [ 'name' => 'my product', ]; } public function testGetFields() { $fields = $this->callAPISuccess($this->_entity, 'getfields', ['action' => 'create']); $this->assertArrayHasKey('period_type', $fields['values']); } public function testGetOptions() { $options = $this->callAPISuccess($this->_entity, 'getoptions', ['field' => 'period_type']); $this->assertArrayHasKey('rolling', $options['values']); } }