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

fix: variation status tag capital letter fix vol 5714 #178

Merged
merged 2 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading