Elgg\EntityPreloaderTest::testOnlyLoadsIfMoreThanOne PHP Method

testOnlyLoadsIfMoreThanOne() public method

    public function testOnlyLoadsIfMoreThanOne()
    {
        $this->obj->_callable_entity_loader = array($this->mock, 'load');
        $this->mock->expects($this->never())->method('load');
        $this->obj->preload(array((object) array('foo' => 23), (object) array('bar' => 234)), array('foo', 'bar'));
    }