Commit graph

3 commits

Author SHA1 Message Date
Roan Kattouw
af78fd1fe3 VueComponentParser: Don't crash on top-level comments
If a .vue file begins with a comment, that comment will get hoisted
above the <html> tag and will be the first node in the document. This
means $dom->firstChild->firstChild isn't a good way of unwrapping the
<html><head> tags. Instead, look for the <head> tag explicitly.

Change-Id: I8254384f563d71442d92c64bfc10841f088ffea6
2021-07-12 22:41:38 +00:00
Umherirrender
78cc6d77ff build: Swap deprecated @codingStandardsIgnore to phpcs:ignore
Bug: T278594
Change-Id: I09a6175917090593e6e0055203a890c32bea03a5
2021-04-04 21:18:22 +02:00
DannyS712
6a93b0ca93 More misc test cleanup
* parent::setUp() should be first, and ::tearDown()
  should be last
* Move tests that directly extend PHPUnit\Framework\TestCase
  to /unit

Change-Id: I1172855c58f4f52a8f624e6d596ec43beb8c93ff
2020-12-24 00:52:06 +00:00
Renamed from tests/phpunit/includes/resourceloader/VueComponentParserTest.php (Browse further)