Skip to content

Commit

Permalink
Fix the unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko authored and Anton Vlasenko committed Apr 26, 2024
1 parent 17c7732 commit 7413002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/tests/term/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function test_unsetting_class_properties_should_work_correctly() {
*/
public function test_to_array_does_not_return_the_data_property() {
$object_data = $this->term->to_array();
$this->assertNotContains( 'data', $object_data, 'The data property should not be returned.' );
$this->assertArrayNotHasKey( 'data', $object_data, 'The data property should not be returned.' );
}

public function tear_down() {
Expand Down

0 comments on commit 7413002

Please sign in to comment.