Illuminate\Routing\AcParametersTest::testResolveResourceFromInput PHP Method

testResolveResourceFromInput() public method

    public function testResolveResourceFromInput()
    {
        $input = ['name' => 'foo'];
        $parameters = $this->parameters;
        $controller = $this->mockController();
        $this->call('POST', '/projects', $input);
        // store action
        $this->assertArrayHasKey('project', $this->getProperty($parameters, 'params'));
        $this->assertEquals($this->getProperty($parameters, 'params')['project'], $input);
        $this->assertArrayHasKey('project', $this->getProperty($controller, 'params'));
        $this->assertEquals($this->getProperty($controller, 'params')['project'], $input);
    }