3 namespace Drupal\Tests\drupalmoduleupgrader\Unit\Plugin\DMU\Indexer;
4 use Drupal\drupalmoduleupgrader\Plugin\DMU\Indexer\Functions;
8 * @covers \Drupal\drupalmoduleupgrader\Plugin\DMU\Indexer\Functions
11 * @expectType \Pharborist\Functions\FunctionDeclarationNode
13 class FunctionsTest extends IndexerTestBase {
15 public function setUp() {
21 function foo_blarg() {}
23 $this->dir->getChild('foo.module')->setContent($code);
25 $this->indexer = new Functions([], 'function', [], $this->db, $this->target);
26 $this->indexer->build();
29 public function testQuery() {
30 $this->assertInstanceOf('\Drupal\Core\Database\Query\Select', $this->indexer->getQuery());