Skip to content
Snippets Groups Projects

Resolve #2972153 "Deprecate themehandlerinterfacegetbasethemes and"

2 unresolved threads

Closes #2972153

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
143 * The theme name to find all its base themes.
144 * @param array $expected
145 * The expected base themes.
146 *
147 * @dataProvider providerTestDoGetBaseThemes
148 */
149 public function testDoGetBaseThemes(array $themes, $theme, array $expected) {
150 // Mocks and stubs.
151 $module_handler = $this->prophesize(ModuleHandlerInterface::class);
152 $state = new State(new KeyValueMemoryFactory());
153 $config_factory = $this->getConfigFactoryStub([]);
154 $theme_engine_list = $this->prophesize(ThemeEngineExtensionList::class);
155 $theme_listing = new ThemeExtensionList($this->root, 'theme', new NullBackend('test'), new InfoParser($this->root), $module_handler->reveal(), $state, $config_factory, $theme_engine_list->reveal(), 'test');
156
157 $method_to_test = (new \ReflectionObject($theme_listing))->getMethod('doGetBaseThemes');
158 $method_to_test->setAccessible(TRUE);
  • added 1 commit

    Compare with previous version

  • 132 135 }
    133 136
    134 137 /**
    135 * Provides test data for testGetBaseThemes.
    138 * Tests getting the base themes for a set a defines themes.
    139 *
    140 * @param array $themes
    141 * An array of available themes, keyed by the theme name.
    142 * @param string $theme
    143 * The theme name to find all its base themes.
    144 * @param array $expected
    145 * The expected base themes.
    146 *
    147 * @dataProvider providerTestDoGetBaseThemes
    148 */
    149 public function testDoGetBaseThemes(array $themes, $theme, array $expected) {
  • added 1 commit

    • 068e22ca - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Dave Long
  • Dave Long added 1 commit

    added 1 commit

    • 38c08185 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • closed

  • Please register or sign in to reply
    Loading