diff --git a/tests/Feature/Api/Assets/AssetStoreTest.php b/tests/Feature/Api/Assets/AssetStoreTest.php index 02478640cb..d1f27cff52 100644 --- a/tests/Feature/Api/Assets/AssetStoreTest.php +++ b/tests/Feature/Api/Assets/AssetStoreTest.php @@ -498,7 +498,7 @@ class AssetStoreTest extends TestCase ->assertOk() ->json(); $asset->refresh(); - $this->assertEquals(\Crypt::decrypt($asset->{$field->db_column_name()}), 'This is encrypted field'); + $this->assertEquals('This is encrypted field', \Crypt::decrypt($asset->{$field->db_column_name()})); //next, test that a 'normal' user *cannot* change the encrypted custom field $response = $this->actingAsForApi($normal_user) @@ -510,7 +510,7 @@ class AssetStoreTest extends TestCase ->assertMessagesAre('Asset updated successfully, but encrypted custom fields were not due to permissions') ->json(); $asset->refresh(); - $this->assertEquals(\Crypt::decrypt($asset->{$field->db_column_name()}), 'This is encrypted field'); + $this->assertEquals('This is encrypted field', \Crypt::decrypt($asset->{$field->db_column_name()})); } } diff --git a/tests/Feature/Api/Assets/AssetUpdateTest.php b/tests/Feature/Api/Assets/AssetUpdateTest.php index 758417fb41..22c0d597f2 100644 --- a/tests/Feature/Api/Assets/AssetUpdateTest.php +++ b/tests/Feature/Api/Assets/AssetUpdateTest.php @@ -31,7 +31,7 @@ class AssetUpdateTest extends TestCase ->assertOk() ->json(); $asset->refresh(); - $this->assertEquals(\Crypt::decrypt($asset->{$field->db_column_name()}), 'This is encrypted field'); + $this->assertEquals('This is encrypted field', \Crypt::decrypt($asset->{$field->db_column_name()})); } public function testPermissionNeededToUpdateEncryptedField() @@ -53,7 +53,7 @@ class AssetUpdateTest extends TestCase ->assertMessagesAre('Asset updated successfully, but encrypted custom fields were not due to permissions') ->json(); $asset->refresh(); - $this->assertEquals(\Crypt::decrypt($asset->{$field->db_column_name()}), "encrypted value should not change"); + $this->assertEquals("encrypted value should not change", \Crypt::decrypt($asset->{$field->db_column_name()})); } }