diff --git a/module/Olcs/src/View/Model/Variation/VariationOverviewSection.php b/module/Olcs/src/View/Model/Variation/VariationOverviewSection.php index e8eb5f355..d09582541 100644 --- a/module/Olcs/src/View/Model/Variation/VariationOverviewSection.php +++ b/module/Olcs/src/View/Model/Variation/VariationOverviewSection.php @@ -27,11 +27,11 @@ public function __construct($ref, $data, $sectionDetails) switch ($sectionDetails['status']) { case 1: - $statusText = 'REQUIRES ATTENTION'; + $statusText = 'Requires attention'; $statusColour = 'orange'; break; case 2: - $statusText = 'UPDATED'; + $statusText = 'Updated'; $statusColour = 'green'; break; default: diff --git a/test/Olcs/src/View/Model/Variation/VariationOverviewSectionTest.php b/test/Olcs/src/View/Model/Variation/VariationOverviewSectionTest.php index 918a76bd4..a1f74fded 100644 --- a/test/Olcs/src/View/Model/Variation/VariationOverviewSectionTest.php +++ b/test/Olcs/src/View/Model/Variation/VariationOverviewSectionTest.php @@ -35,7 +35,7 @@ public function testViewWithRequiresAttention(): void $this->assertInstanceOf(ViewModel::class, $viewModel); $this->assertEquals('section.name.type_of_licence', $viewModel->getVariable('name')); $this->assertEquals('orange', $viewModel->getVariable('statusColour')); - $this->assertEquals('REQUIRES ATTENTION', $viewModel->getVariable('status')); + $this->assertEquals('Requires attention', $viewModel->getVariable('status')); // variation sections should NOT be visibly numbered $this->assertNull($viewModel->getVariable('sectionNumber')); // OLCS-7016; @@ -56,7 +56,7 @@ public function testViewWithUpdated(): void $this->assertInstanceOf(ViewModel::class, $viewModel); $this->assertEquals('section.name.type_of_licence', $viewModel->getVariable('name')); $this->assertEquals('green', $viewModel->getVariable('statusColour')); - $this->assertEquals('UPDATED', $viewModel->getVariable('status')); + $this->assertEquals('Updated', $viewModel->getVariable('status')); $this->assertNull($viewModel->getVariable('sectionNumber')); }