Ejemplo n.º 1
0
 public function testCsrfToken()
 {
     set_app($app = new Application());
     $app['session'] = $this->getMock('Illuminate\\Session\\TokenProvider');
     $app['session']->expects($this->once())->method('getToken')->will($this->returnValue('foo'));
     $this->assertEquals('foo', csrf_token());
 }
Ejemplo n.º 2
0
 public static function setUpBeforeClass()
 {
     set_app(new Application());
 }