Two ways to Selenium test Twitter authentication using Magium

It’s been a while since I wrote the Twitter Selenium components in Magium and I forgot that I wrote two ways of authenticating. In case you don’t know how to install it: here you go

composer require magium/twitter

Directly authenticating against Twitter

        $this->getAction(AuthenticateTwitter::ACTION)->execute();

Site authentication using Twitter

        $action = $this->getAction(SignInWithTwitter::ACTION);

Two actions; two scenarios.