final class TestUpdateHandler in Lightning Core 8.5
Same name and namespace in other branches
- 8 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\TestUpdateHandler
- 8.2 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\TestUpdateHandler
- 8.3 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\TestUpdateHandler
- 8.4 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\TestUpdateHandler
A test class containing discoverable updates.
Hierarchy
- class \Drupal\Tests\lightning_core\Unit\TestUpdateHandler
Expanded class hierarchy of TestUpdateHandler
File
- tests/
src/ Unit/ UpdateManagerTest.php, line 91
Namespace
Drupal\Tests\lightning_core\UnitView source
final class TestUpdateHandler {
/**
* @update
*
* @ask Can you trip like I do?
*/
public function foo(StyleInterface $io) {
$io
->success('Dude, sweet!');
}
/**
* @update
*
* @ask Why would you do this?
*/
public function nope(StyleInterface $io) {
$io
->error('Oh, the humanity!');
}
public function bar() {
}
/**
* @update
*/
protected function baz() {
// Protected methods should not be discovered, even if they have the @update
// annotation.
}
/**
* @update
*/
private function wambooli() {
// As with protected methods, private methods should never be discovered
// even if they have the @update annotation.
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestUpdateHandler:: |
public | function | ||
TestUpdateHandler:: |
protected | function | @update | |
TestUpdateHandler:: |
public | function | @update | |
TestUpdateHandler:: |
public | function | @update | |
TestUpdateHandler:: |
private | function | @update |