You are here

public function LegacyDrupal7Test::test_call in Service Container 7.2

Same name and namespace in other branches
  1. 8 tests/src/Legacy/LegacyDrupal7Test.php \Drupal\Tests\service_container\Legacy\LegacyDrupal7Test::test_call()
  2. 7 tests/src/Legacy/LegacyDrupal7Test.php \Drupal\Tests\service_container\Legacy\LegacyDrupal7Test::test_call()

@covers ::__call()

File

tests/src/Legacy/LegacyDrupal7Test.php, line 35
Contains \Drupal\Tests\service_container\Legacy\LegacyDrupal7Test.

Class

LegacyDrupal7Test
@coversDefaultClass \Drupal\service_container\Legacy\Drupal7

Namespace

Drupal\Tests\service_container\Legacy

Code

public function test_call() {
  $random_string = 'is_a_lovely_cat!';
  $this
    ->assertEquals('izumi_is_a_lovely_cat!', $this->drupal7_service
    ->drupal7_legacy_test_function($random_string), 'Calling function via legacy service works.');
}