Redaxscript\Tests\ModuleTest::testGetAndSetNotification PHP Method

testGetAndSetNotification() public method

testGetAndSetNotification
Since: 3.0.0
    public function testGetAndSetNotification()
    {
        /* setup */
        $module = new Module();
        $module->init(['name' => 'Test dummy', 'alias' => 'TestDummy']);
        $module->setNotification('error', 'testValue');
        /* actual */
        $actual = $module->getNotification('error');
        /* compare */
        $this->assertEquals('testValue', $actual['Test dummy'][0]);
    }