Esempio n. 1
0
 public function testLoginToFacebook()
 {
     // precondition: you need to have a server running for this test
     // you can start a php server with: php -S 127.0.0.1:8000 -t tests/data/app
     $browserModule = new PhpBrowser($this->makeContainer());
     $this->initModule($browserModule, ['url' => 'http://localhost:8000']);
     $this->module->_inject($browserModule);
     $this->loginToFacebook($browserModule);
     // cleanup
     $browserModule->_after($this->makeTest());
     data::clean();
 }
 public function testLoginToFacebook()
 {
     if (PHP_MAJOR_VERSION < 7 && getenv('TRAVIS')) {
         $this->markTestSkipped('run only one thread on Travis');
     }
     // precondition: you need to have a server running for this test
     // you can start a php server with: php -S 127.0.0.1:8000 -t tests/data/app
     $browserModule = new PhpBrowser(make_container());
     $this->initModule($browserModule, ['url' => 'http://localhost:8000']);
     $this->module->_inject($browserModule);
     $this->loginToFacebook($browserModule);
     // cleanup
     $browserModule->_after($this->makeTest());
     data::clean();
 }