Redaxscript\Tests\ModuleTest::testGetAll PHP Method

testGetAll() public method

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