Airship\UnitTests\Cabin\Hull\ConfigFilterTest::testHappyPath PHP Method

testHappyPath() public method

public testHappyPath ( )
    public function testHappyPath()
    {
        $filter = new ConfigFilter();
        $input = ['config_extra' => ['blog' => ['cachelists' => '1', 'comments' => ['depth_max' => 10, 'enabled' => 'on'], 'per_page' => 20], 'cache-secret' => 'gvLYN5VAR3gxcz938JeEtKLVXCTrTEa2h', 'recaptcha' => ['site-key' => null, 'secret-key' => 'boo'], 'file' => ['cache' => 10800]], 'twig_vars' => ['active-motif' => 'test-motif', 'blog' => ['title' => 'Test!'], 'tagline' => 'test!', 'title' => null]];
        $expectedOutput = ['config_extra' => ['blog' => ['cachelists' => true, 'comments' => ['depth_max' => 10, 'enabled' => true, 'guests' => false, 'recaptcha' => false], 'per_page' => 20], 'cache-secret' => 'gvLYN5VAR3gxcz938JeEtKLVXCTrTEa2h', 'file' => ['cache' => 10800], 'homepage' => ['blog-posts' => 5], 'recaptcha' => ['secret-key' => 'boo', 'site-key' => '']], 'twig_vars' => ['active-motif' => 'test-motif', 'blog' => ['tagline' => '', 'title' => 'Test!'], 'tagline' => 'test!', 'title' => '']];
        $output = $filter($input);
        $this->assertSame(\json_encode($expectedOutput, JSON_PRETTY_PRINT), \json_encode($output, JSON_PRETTY_PRINT));
        $this->assertEquals($expectedOutput, $output);
    }
ConfigFilterTest