Skip to content

Commit

Permalink
Fix indentation changes in BlockBindingsTest
Browse files Browse the repository at this point in the history
  • Loading branch information
alecgeatches committed Jan 2, 2025
1 parent d1a0ca0 commit a7e8acf
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions tests/inc/Editor/DataBinding/BlockBindingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ public function test_execute_query_returns_query_results(): void {
*/
$mock_config_store = Mockery::namedMock( ConfigStore::class );
$mock_config_store->shouldReceive( 'get_block_configuration' )
->once()
->with( self::MOCK_BLOCK_NAME )
->andReturn( $mock_block_config );
->once()
->with( self::MOCK_BLOCK_NAME )
->andReturn( $mock_block_config );

$query_results = BlockBindings::execute_query( $block_context, self::MOCK_OPERATION_NAME );
$this->assertSame( $query_results, self::MOCK_OUTPUT_QUERY_RESULTS );
Expand Down Expand Up @@ -191,9 +191,9 @@ public function test_execute_query_with_overrides(): void {

$mock_config_store = Mockery::namedMock( ConfigStore::class );
$mock_config_store->shouldReceive( 'get_block_configuration' )
->once()
->with( self::MOCK_BLOCK_NAME )
->andReturn( $mock_block_config );
->once()
->with( self::MOCK_BLOCK_NAME )
->andReturn( $mock_block_config );

$query_results = BlockBindings::execute_query( $block_context, self::MOCK_OPERATION_NAME );

Expand Down Expand Up @@ -253,9 +253,9 @@ public function execute( HttpQueryInterface $query, array $input_variables ): ar

$mock_config_store = Mockery::namedMock( ConfigStore::class );
$mock_config_store->shouldReceive( 'get_block_configuration' )
->once()
->with( self::MOCK_BLOCK_NAME )
->andReturn( $mock_block_config );
->once()
->with( self::MOCK_BLOCK_NAME )
->andReturn( $mock_block_config );

$query_results = BlockBindings::execute_query( $block_context, self::MOCK_OPERATION_NAME );
$this->assertSame( $query_results, self::MOCK_OUTPUT_QUERY_RESULTS );
Expand Down Expand Up @@ -325,9 +325,9 @@ public function execute( HttpQueryInterface $query, array $input_variables ): ar

$mock_config_store = Mockery::namedMock( ConfigStore::class );
$mock_config_store->shouldReceive( 'get_block_configuration' )
->once()
->with( self::MOCK_BLOCK_NAME )
->andReturn( $mock_block_config );
->once()
->with( self::MOCK_BLOCK_NAME )
->andReturn( $mock_block_config );

$query_results = BlockBindings::execute_query( $block_context, self::MOCK_OPERATION_NAME );
$this->assertSame( $query_results, self::MOCK_OUTPUT_QUERY_RESULTS );
Expand Down Expand Up @@ -377,9 +377,9 @@ public function test_get_remote_value(): void {

$mock_config_store = Mockery::namedMock( ConfigStore::class );
$mock_config_store->shouldReceive( 'get_block_configuration' )
->once()
->with( self::MOCK_BLOCK_NAME )
->andReturn( $mock_block_config );
->once()
->with( self::MOCK_BLOCK_NAME )
->andReturn( $mock_block_config );

$source_args = [
'field' => self::MOCK_OUTPUT_FIELD_NAME,
Expand Down Expand Up @@ -426,9 +426,9 @@ public function test_get_remote_value_with_non_string(): void {

$mock_config_store = Mockery::namedMock( ConfigStore::class );
$mock_config_store->shouldReceive( 'get_block_configuration' )
->once()
->with( self::MOCK_BLOCK_NAME )
->andReturn( $mock_block_config );
->once()
->with( self::MOCK_BLOCK_NAME )
->andReturn( $mock_block_config );

$source_args = [
'field' => self::MOCK_OUTPUT_FIELD_NAME,
Expand Down

0 comments on commit a7e8acf

Please sign in to comment.