public function testWhetherADefaultActionIsBeingSetOnFormCreation() { $this->getRequestMock()->shouldReceive('getPathInfo')->andReturn('some/route'); $form = new Form(); $form->setTokenDisabled(); $form->create(); $this->assertEquals('/some/route', $form->getAction(), 'Form::create() does not set a default action if none was set explicitly'); }