@@ -64,7 +64,7 @@ public function testEnforce() {
6464
6565 $ this ->assertEquals (0 , $ rc );
6666 $ display = $ this ->command ->getDisplay ();
67- $ this ->assertContains ("Two-factor authentication is enforced for all users " , $ display );
67+ $ this ->assertStringContainsString ("Two-factor authentication is enforced for all users " , $ display );
6868 }
6969
7070 public function testEnforceForOneGroup () {
@@ -82,7 +82,7 @@ public function testEnforceForOneGroup() {
8282
8383 $ this ->assertEquals (0 , $ rc );
8484 $ display = $ this ->command ->getDisplay ();
85- $ this ->assertContains ("Two-factor authentication is enforced for members of the group(s) twofactorers " , $ display );
85+ $ this ->assertStringContainsString ("Two-factor authentication is enforced for members of the group(s) twofactorers " , $ display );
8686 }
8787
8888 public function testEnforceForAllExceptOneGroup () {
@@ -100,7 +100,7 @@ public function testEnforceForAllExceptOneGroup() {
100100
101101 $ this ->assertEquals (0 , $ rc );
102102 $ display = $ this ->command ->getDisplay ();
103- $ this ->assertContains ("Two-factor authentication is enforced for all users, except members of yoloers " , $ display );
103+ $ this ->assertStringContainsString ("Two-factor authentication is enforced for all users, except members of yoloers " , $ display );
104104 }
105105
106106 public function testDisableEnforced () {
@@ -117,7 +117,7 @@ public function testDisableEnforced() {
117117
118118 $ this ->assertEquals (0 , $ rc );
119119 $ display = $ this ->command ->getDisplay ();
120- $ this ->assertContains ("Two-factor authentication is not enforced " , $ display );
120+ $ this ->assertStringContainsString ("Two-factor authentication is not enforced " , $ display );
121121 }
122122
123123 public function testCurrentStateEnabled () {
@@ -129,7 +129,7 @@ public function testCurrentStateEnabled() {
129129
130130 $ this ->assertEquals (0 , $ rc );
131131 $ display = $ this ->command ->getDisplay ();
132- $ this ->assertContains ("Two-factor authentication is enforced for all users " , $ display );
132+ $ this ->assertStringContainsString ("Two-factor authentication is enforced for all users " , $ display );
133133 }
134134
135135 public function testCurrentStateDisabled () {
@@ -141,6 +141,6 @@ public function testCurrentStateDisabled() {
141141
142142 $ this ->assertEquals (0 , $ rc );
143143 $ display = $ this ->command ->getDisplay ();
144- $ this ->assertContains ("Two-factor authentication is not enforced " , $ display );
144+ $ this ->assertStringContainsString ("Two-factor authentication is not enforced " , $ display );
145145 }
146146}
0 commit comments