Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
fix: variation status tag capital letter fix vol 5714 (#178)
Browse files Browse the repository at this point in the history
* fix: Case on Variation application status tags

* fix: Case on Variation application status tags
  • Loading branch information
fibble authored Aug 14, 2024
1 parent e92fdbd commit 9ef63ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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'));
}
Expand Down

0 comments on commit 9ef63ab

Please sign in to comment.