Crud\TestCase\Controller\Crud\CrudComponentTest::testConfigOverwrite PHP Method

testConfigOverwrite() public method

Using $key and value, and specifying no merge should overwrite the value keys
public testConfigOverwrite ( ) : void
return void
    public function testConfigOverwrite()
    {
        $this->Crud->config('messages.invalidId', ['code' => 500], false);
        $expected = ['domain' => 'crud', 'invalidId' => ['code' => 500], 'recordNotFound' => ['code' => 404, 'class' => 'Cake\\Network\\Exception\\NotFoundException', 'text' => 'Not found'], 'badRequestMethod' => ['code' => 405, 'class' => 'Cake\\Network\\Exception\\MethodNotAllowedException', 'text' => 'Method not allowed. This action permits only {methods}']];
        $result = $this->Crud->config('messages');
        $this->assertEquals($expected, $result);
    }