Skip to content
Snippets Groups Projects
Unverified Commit 1b6bf5a9 authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #32596 from jaapjansma/issue_5830_test

#5830 Fix Unit Test for CaseType api (v4) returns empty definition
parents 48e6e28f eab5eff1
Branches
No related tags found
No related merge requests found
......@@ -116,17 +116,9 @@ class CaseTest extends Api4TestBase {
}
public function testCaseTypeDefinition(): void {
$caseType = $this->createTestRecord('CaseType', [
'title' => 'Test Case Type',
'name' => 'test_case_type3',
'definition' => [
'statuses' => ['Testing', 'Closed'],
],
]);
$caseTypeToTest = CaseType::get(FALSE)
->addSelect('definition')
->addWhere('name', '=', 'test_case_type3')
->addWhere('name', '=', 'housing_support')
->execute()
->first();
$this->assertArrayHasKey('definition', $caseTypeToTest);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment