File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ public function test_get_data() {
62
62
$ ds = new dssite ($ cms );
63
63
$ data = $ ds ->get_data ();
64
64
65
- $ this ->assertObjectHasAttribute ('fullname ' , $ data );
66
- $ this ->assertObjectHasAttribute ('shortname ' , $ data );
67
- $ this ->assertObjectHasAttribute ('wwwroot ' , $ data );
65
+ $ this ->assertObjectHasProperty ('fullname ' , $ data );
66
+ $ this ->assertObjectHasProperty ('shortname ' , $ data );
67
+ $ this ->assertObjectHasProperty ('wwwroot ' , $ data );
68
68
}
69
69
70
70
/**
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function test_get_data() {
67
67
foreach (dsbase::BUILTIN_DATASOURCES as $ ds ) {
68
68
$ classname = 'mod_cms \\local \\datasource \\' . $ ds ;
69
69
$ attribute = $ classname ::get_shortname ();
70
- $ this ->assertObjectHasAttribute ($ attribute , $ data );
70
+ $ this ->assertObjectHasProperty ($ attribute , $ data );
71
71
$ this ->assertIsObject ($ data ->$ attribute );
72
72
}
73
73
}
You can’t perform that action at this time.
0 commit comments