GraphAware\Neo4j\Client\Tests\Issues\ReportedIssuesTest::testTryingToDeleteNodeWithRelsInTransactionShouldFail PHP Method

testTryingToDeleteNodeWithRelsInTransactionShouldFail() public method

    public function testTryingToDeleteNodeWithRelsInTransactionShouldFail()
    {
        $this->emptyDb();
        $this->createNodeWithRels();
        $tx = $this->client->transaction();
        $tx->push('MATCH (n:Node) DELETE n');
        $this->setExpectedException(Neo4jException::class);
        $tx->commit();
    }