Skip to content

Commit

Permalink
Update Block Patterns Controller PHPUnit tests (#47569)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Jan 30, 2023
1 parent ca9f857 commit 46a5545
Showing 1 changed file with 39 additions and 8 deletions.
47 changes: 39 additions & 8 deletions phpunit/class-gutenberg-rest-block-patterns-controller-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,13 @@ public function test_get_items_migrate_pattern_categories() {

/**
* Abstract methods that we must implement.
*
* @doesNotPerformAssertions
*/
public function test_register_routes() {
$this->markTestIncomplete();
// Controller does not implement this method.
}

public function test_get_items() {
wp_set_current_user( self::$admin_id );

Expand All @@ -166,25 +169,53 @@ public function test_get_items() {
$this->assertEquals( $expected_fields, array_keys( $item ) );
}
}

/**
* @doesNotPerformAssertions
*/
public function test_context_param() {
$this->markTestIncomplete();
// Controller does not implement this method.
}

/**
* @doesNotPerformAssertions
*/
public function test_get_item() {
$this->markTestIncomplete();
// Controller does not implement this method.
}

/**
* @doesNotPerformAssertions
*/
public function test_create_item() {
$this->markTestIncomplete();
// Controller does not implement this method.
}

/**
* @doesNotPerformAssertions
*/
public function test_update_item() {
$this->markTestIncomplete();
// Controller does not implement this method.
}

/**
* @doesNotPerformAssertions
*/
public function test_delete_item() {
$this->markTestIncomplete();
// Controller does not implement this method.
}

/**
* @doesNotPerformAssertions
*/
public function test_prepare_item() {
$this->markTestIncomplete();
// Controller does not implement this method.
}

/**
* @doesNotPerformAssertions
*/
public function test_get_item_schema() {
$this->markTestIncomplete();
// Controller does not implement this method.
}
}

0 comments on commit 46a5545

Please sign in to comment.