Elgg\PluginHooksServiceTest::testNullReturnDoesntChangeValue PHP Method

testNullReturnDoesntChangeValue() public method

    public function testNullReturnDoesntChangeValue()
    {
        $hooks = new \Elgg\PluginHooksService();
        $hooks->registerHandler('foo', 'bar', 'Elgg\\Values::getNull');
        $returnval = $hooks->trigger('foo', 'bar', array(), 1);
        $this->assertEquals(1, $returnval);
    }