function FileTestHelper::getAllCalls

Get an array with the calls for all hooks.

Return value

array An array keyed by hook name ('load', 'validate', 'download', 'insert', 'update', 'copy', 'move', 'delete') with values being arrays of parameters passed to each call.

2 calls to FileTestHelper::getAllCalls()
FileManagedTestBase::assertFileHooksCalled in core/modules/file/tests/src/Functional/FileManagedTestBase.php
Asserts that the specified file hooks were called only once.
FileManagedUnitTestBase::assertFileHooksCalled in core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
Asserts that the specified file hooks were called only once.

File

core/modules/file/tests/file_test/src/FileTestHelper.php, line 71

Class

FileTestHelper
Helper for file tests.

Namespace

Drupal\file_test

Code

public static function getAllCalls() : array {
    return \Drupal::state()->get('file_test.results', []);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.