Elgg\EntityPreloaderTest::testAcceptsOnlyArraysOfObjects PHP Method

testAcceptsOnlyArraysOfObjects() public method

    public function testAcceptsOnlyArraysOfObjects()
    {
        $inputs = array('foo', array('0', array()), array((object) array('foo' => 123), array('bar' => 234)));
        $this->obj->_callable_cache_checker = array($this->mock, 'isCached');
        $this->mock->expects($this->once())->method('isCached')->with(123);
        foreach ($inputs as $input) {
            $this->obj->preload($input, array('foo', 'bar'));
        }
    }