Skip to content
Snippets Groups Projects

Remove withConsecutive() in pgsql SchemaTest.

Closes #3417531

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
37
38 $statement = $this->prophesize('\Drupal\Core\Database\StatementInterface');
39 $statement->fetchField()->willReturn($max_identifier_length);
40 $connection->query('SHOW max_identifier_length')->willReturn($statement->reveal());
57 41
58 $this->connection->expects($this->exactly(2))
59 ->method('query')
60 ->withConsecutive(
61 [$this->anything()],
62 ["SELECT 1 FROM pg_constraint WHERE conname = '$expected'"],
63 )
64 ->willReturnOnConsecutiveCalls(
65 $statement,
66 $this->createMock('\Drupal\Core\Database\StatementInterface'),
67 );
42 $connection->query("SELECT 1 FROM pg_constraint WHERE conname = '$expected'")
  • Dave Long added 1 commit

    added 1 commit

    • f404e4a0 - Remove implementation detail.

    Compare with previous version

  • Dave Long added 1 commit

    added 1 commit

    • d1c106fd - Remove implementation detail.

    Compare with previous version

  • Please register or sign in to reply
    Loading