diff --git a/tests/Integrations/Laravel/AutomatedLoginEventsTestSuite.php b/tests/Integrations/Laravel/AutomatedLoginEventsTestSuite.php index 3c9321cb1b0..26ae0c93414 100644 --- a/tests/Integrations/Laravel/AutomatedLoginEventsTestSuite.php +++ b/tests/Integrations/Laravel/AutomatedLoginEventsTestSuite.php @@ -44,7 +44,7 @@ public function testUserLoginSuccessEvent() $this->login($email); - $events = AppsecStatus::getInstance()->getEvents(['track_user_login_success_event']); + $events = AppsecStatus::getInstance()->getEvents(['track_user_login_success_event_automated']); $this->assertEquals(1, count($events)); $this->assertEquals($id, $events[0]['userId']); $this->assertEquals($email, $events[0]['userLogin']); @@ -58,7 +58,7 @@ public function testUserLoginFailureEvent() $this->login($email); - $events = AppsecStatus::getInstance()->getEvents(['track_user_login_failure_event']); + $events = AppsecStatus::getInstance()->getEvents(['track_user_login_failure_event_automated']); $this->assertEquals(1, count($events)); $this->assertEquals($email, $events[0]['userLogin']); } @@ -77,7 +77,7 @@ public function testUserSignUp() $this->assertEquals(1, count($users)); - $signUpEvent = AppsecStatus::getInstance()->getEvents(['track_user_signup_event']); + $signUpEvent = AppsecStatus::getInstance()->getEvents(['track_user_signup_event_automated']); $this->assertEquals($users[0]['id'], $signUpEvent[0]['userId']); $this->assertEquals($users[0]['email'], $signUpEvent[0]['userLogin']); @@ -99,9 +99,9 @@ public function testLoggedInCalls() $this->call(GetSpec::create('Behind auth', '/behind_auth')); $events = AppsecStatus::getInstance()->getEvents([ - 'track_user_login_success_event', - 'track_user_login_failure_event', - 'track_user_signup_event' + 'track_user_login_success_event_automated', + 'track_user_login_failure_event_automated', + 'track_user_signup_event_automated' ]); $this->assertEquals(0, count($events)); //Auth does not generate appsec events $this->disableSession(); diff --git a/tests/Integrations/Symfony/AutomatedLoginEventsTestSuite.php b/tests/Integrations/Symfony/AutomatedLoginEventsTestSuite.php index b5b2f3baf20..41ebff3fc42 100644 --- a/tests/Integrations/Symfony/AutomatedLoginEventsTestSuite.php +++ b/tests/Integrations/Symfony/AutomatedLoginEventsTestSuite.php @@ -41,7 +41,7 @@ public function testUserLoginSuccessEvent() $this->call($spec, [ CURLOPT_FOLLOWLOCATION => false ]); - $events = AppsecStatus::getInstance()->getEvents(['track_user_login_success_event']); + $events = AppsecStatus::getInstance()->getEvents(['track_user_login_success_event_automated']); $this->assertEquals(1, count($events)); $this->assertEquals($email, $events[0]['userLogin']); @@ -59,7 +59,7 @@ public function testUserLoginFailureEvent() $this->call($spec, [ CURLOPT_FOLLOWLOCATION => false ]); - $events = AppsecStatus::getInstance()->getEvents(['track_user_login_failure_event']); + $events = AppsecStatus::getInstance()->getEvents(['track_user_login_failure_event_automated']); $this->assertEquals(1, count($events)); $this->assertEmpty($events[0]['userLogin']); $this->assertEmpty($events[0]['userId']); @@ -84,7 +84,7 @@ public function testUserSignUp() $this->assertEquals(1, count($users)); - $signUpEvent = AppsecStatus::getInstance()->getEvents(['track_user_signup_event']); + $signUpEvent = AppsecStatus::getInstance()->getEvents(['track_user_signup_event_automated']); $this->assertEquals($email, $signUpEvent[0]['userLogin']); $this->assertEquals($email, $signUpEvent[0]['userId']); diff --git a/tests/Integrations/WordPress/AutomatedLoginEventsTestSuite.php b/tests/Integrations/WordPress/AutomatedLoginEventsTestSuite.php index 6e36beffa0b..dfd282657c0 100644 --- a/tests/Integrations/WordPress/AutomatedLoginEventsTestSuite.php +++ b/tests/Integrations/WordPress/AutomatedLoginEventsTestSuite.php @@ -37,7 +37,7 @@ public function testUserLoginSuccessEvent() $this->call($spec, [CURLOPT_FOLLOWLOCATION => false, CURLOPT_COOKIESESSION => true]); - $events = AppsecStatus::getInstance()->getEvents(['track_user_login_success_event']); + $events = AppsecStatus::getInstance()->getEvents(['track_user_login_success_event_automated']); $this->assertEquals(1, count($events)); $this->assertEquals($email, $events[0]['userLogin']); $this->assertEquals($id, $events[0]['userId']); @@ -55,7 +55,7 @@ public function testUserLoginFailureEventWhenUserDoesNotExists() $this->call($spec, [CURLOPT_FOLLOWLOCATION => false, CURLOPT_COOKIESESSION => true]); - $events = AppsecStatus::getInstance()->getEvents(['track_user_login_failure_event']); + $events = AppsecStatus::getInstance()->getEvents(['track_user_login_failure_event_automated']); $this->assertEquals(1, count($events)); $this->assertEquals($email, $events[0]['userId']); $this->assertEquals($email, $events[0]['userLogin']); @@ -80,7 +80,7 @@ public function testUserLoginFailureEventWhenUserDoesExists() $this->call($spec, [CURLOPT_FOLLOWLOCATION => false, CURLOPT_COOKIESESSION => true]); - $events = AppsecStatus::getInstance()->getEvents(['track_user_login_failure_event']); + $events = AppsecStatus::getInstance()->getEvents(['track_user_login_failure_event_automated']); $this->assertEquals(1, count($events)); $this->assertEquals($email, $events[0]['userId']); $this->assertEquals($email, $events[0]['userLogin']); @@ -103,7 +103,7 @@ public function testUserSignUp() $this->assertEquals(1, count($users)); - $signUpEvent = AppsecStatus::getInstance()->getEvents(['track_user_signup_event']); + $signUpEvent = AppsecStatus::getInstance()->getEvents(['track_user_signup_event_automated']); $this->assertEquals($users[0]['ID'], $signUpEvent[0]['userId']); $this->assertEquals($users[0]['user_login'], $signUpEvent[0]['userLogin']);