Eko\FeedBundle\Tests\Service\FeedDumpServiceTest::testDumpWithInvalidOrder PHP Method

testDumpWithInvalidOrder() public method

Tests the dump() method with an invalid order Should throw a \InvalidArgumentException.
    public function testDumpWithInvalidOrder()
    {
        if (!method_exists($this->filesystem, 'dumpFile')) {
            $this->markTestSkipped('Test skipped as Filesystem::dumpFile() is not available in this version.');
        }
        $this->setExpectedException('\\InvalidArgumentException');
        $this->service->setOrderBy('unexistant-order');
        $this->service->dump();
    }