quickCleanup($tablesToTruncate, TRUE); } /** * @param int $version * @dataProvider versionThreeAndFour */ public function testActivityCreateCustomBefore($version) { $this->_apiversion = $version; $values = $this->callAPISuccess('custom_field', 'getoptions', ['field' => 'custom_group_id']); $this->assertTrue($values['count'] == 0); $this->CustomGroupCreate(['extends' => 'Activity']); $groupCount = $this->callAPISuccess('custom_group', 'getcount', ['extends' => 'activity']); $this->assertEquals($groupCount, 1, 'one group should now exist'); $values = $this->callAPISuccess('custom_field', 'getoptions', ['field' => 'custom_group_id']); $this->assertTrue($values['count'] == 1, 'check that cached value is not retained for custom_group_id'); } }