Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/wp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
- name: Build schema.json
run: npm install && npm run build:schema

- name: Install Subversion
run: sudo apt-get update && sudo apt-get install --no-install-recommends --yes subversion

- name: Install WordPress test setup
run: bash tests/bin/install-wp-tests.sh wordpress_test root password 127.0.0.1:${{ job.services.mysql.ports[3306] }} latest

Expand Down
4 changes: 3 additions & 1 deletion tests/plugin/test-liberate-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ protected function setUp(): void {

protected function tearDown(): void {
wp_delete_post( $this->inserted_post_id, true );
wp_delete_post( $this->transformed_post_id, true );
if ( 0 < $this->transformed_post_id ) {
wp_delete_post( $this->transformed_post_id, true );
}
}

public function testGetStoragePostType() {
Expand Down
Loading