Skip to content

Commit

Permalink
incrase test unit covrage
Browse files Browse the repository at this point in the history
Signed-off-by: Salah Alkhwlani <[email protected]>
  • Loading branch information
salkhwlani committed Jul 18, 2024
1 parent 7c22716 commit a99d522
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/SallaUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,16 @@ public function testUserDefaults()
'store_location'=>'mock_location',
'plan'=>'mock_plan',
'status'=>'mock_status',
'domain' => 'test.store',
'tax_number' => '11',
'commercial_number' => '22',
'created_at'=>'2018-04-28 17:46:25',
],
'context' => [
'app' => '123',
'scope' => 'orders.read products.read',
'exp' => 1721326955
]
]]);

$this->assertEquals(12345, $user->getId());
Expand All @@ -57,6 +65,11 @@ public function testUserDefaults()
$this->assertEquals('mock_location', $user->getStoreLocation());
$this->assertEquals('mock_plan', $user->getStorePlan());
$this->assertEquals('mock_status', $user->getStoreStatus());
$this->assertEquals('test.store', $user->getStoreDomain());
$this->assertEquals('11', $user->getStoreTaxNumber());
$this->assertEquals('22', $user->getStoreCommercialNumber());
$this->assertEquals('orders.read products.read', $user->getScope());
$this->assertEquals('1721326955', $user->getExpiredAt());
$this->assertEquals( '2018-04-28 17:46:25', $user->getStoreCreatedAt()->format('Y-m-d H:i:s'));
}

Expand Down

0 comments on commit a99d522

Please sign in to comment.