RMS\PushNotificationsBundle\Tests\DependencyInjection\ConfigurationTest::testGCMIsOK PHP Method

testGCMIsOK() public method

public testGCMIsOK ( )
    public function testGCMIsOK()
    {
        $arr = array(array("android" => array("gcm" => array("api_key" => "foo", "use_multi_curl" => true, "dry_run" => false))));
        $config = $this->process($arr);
        $this->assertEquals("foo", $config["android"]["gcm"]["api_key"]);
        $this->assertFalse($config["android"]["gcm"]["dry_run"]);
        $arr[0]["android"]["gcm"]["dry_run"] = true;
        $config = $this->process($arr);
        $this->assertTrue($config["android"]["gcm"]["dry_run"]);
    }