Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
uses: K-Phoen/semver-release-action@master
with:
release_strategy: none
release_branch: 5.x
tag_format: "5.%minor%.%patch%"
release_branch: 6.x
tag_format: "6.%minor%.%patch%"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo 'Creating new release for ' ${{ steps.tag.outputs.tag }}
Expand Down
18 changes: 1 addition & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,4 @@ jobs:
needs: [phpunit, codeception]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: project
- name: Run tests
run: |
composer global require su-sws/stanford-caravan:11.x-dev &&
~/.config/composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --suites=functional &&
if [ ! -f /var/www/html/artifacts/functional/results.html ]; then
exit 1
fi
- name: Save Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: d11-functional-tests-results
path: /var/www/html/artifacts

- run: echo 'Passed'
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
}
}
}

],
"require": {
"ext-imagick": "*",
Expand Down Expand Up @@ -77,7 +76,7 @@
"drupal/config_split": "^2.0",
"drupal/confirm_leave": "^1.0@beta",
"drupal/content_lock": "^3.0",
"drupal/core": "~10.4",
"drupal/core": "~11.2.2",
"drupal/cshs": "^4.0",
"drupal/default_content": "^2.0@alpha",
"drupal/diff": "^1.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Board of Trustee Profile Helper'
type: module
description: 'Add on module and functionality for Board of Trustees.'
core_version_requirement: ^9 || ^10
core_version_requirement: ^11
package: 'trustee'
4 changes: 2 additions & 2 deletions src/EventSubscriber/StanfordProfileEventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* Class EventSubscriber.
*
* @package Drupal\stanford_profile\EventSubscriber
* @package Drupal\trustee_profile\EventSubscriber
*/
class StanfordProfileEventSubscriber implements EventSubscriberInterface {

Expand Down Expand Up @@ -70,7 +70,7 @@ public static function getSubscribedEvents() {
* Messenger service.
*/
public function __construct(protected FileSystemInterface $fileSystem, protected ClientInterface $client, LoggerChannelFactoryInterface $logger_factory, protected MessengerInterface $messenger) {
$this->logger = $logger_factory->get('stanford_profile');
$this->logger = $logger_factory->get('trustee_profile');
}

/**
Expand Down
8 changes: 1 addition & 7 deletions src/InstallTaskManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@ class InstallTaskManager extends DefaultPluginManager {
* The module handler to invoke the alter hook with.
*/
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct(
'Plugin/InstallTask',
$namespaces,
$module_handler,
'Drupal\trustee_profile\InstallTaskInterface',
'Drupal\trustee_profile\Annotation\InstallTask'
);
parent::__construct('Plugin/InstallTask', $namespaces, $module_handler, InstallTaskInterface::class, InstallTask::class);
$this->alterInfo('install_task_plugins');
$this->setCacheBackend($cache_backend, 'install_task_plugins');
}
Expand Down
30 changes: 0 additions & 30 deletions src/Plugin/HelpSection/ProfileConnectSection.php

This file was deleted.

6 changes: 3 additions & 3 deletions src/Plugin/InstallTask/SiteSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ protected function addSiteOwner($sunet, $email) {
* Returned data if any exist.
*/
protected function getSnowData($site_name) {
$api_url = Settings::get('trustee_profile_snow_api_url', self::SNOW_API);
$api_url = Settings::get('stanford_profile_snow_api_url', self::SNOW_API);
try {
$response = $this->client->request('GET', $api_url, [
'query' => ['website_address' => $site_name],
'auth' => [
Settings::get('trustee_profile_snow_api_user'),
Settings::get('trustee_profile_snow_api_pass'),
Settings::get('stanford_profile_snow_api_user'),
Settings::get('stanford_profile_snow_api_pass'),
],
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@ public function __construct() {
$this->faker = Factory::create();
}

/**
* Allow all paragraph types by using state.
*/
public function _before() {
\Drupal::state()->set('trustee_profile_allow_all_paragraphs', TRUE);
}

/**
* News items should display in the list paragraph.
*/
Expand Down
8 changes: 2 additions & 6 deletions tests/src/Kernel/EventSubscriber/EventSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
use Drupal\KernelTests\KernelTestBase;
use Drupal\media\Entity\Media;
use Drupal\media\Entity\MediaType;
use Drupal\trustee_profile\EventSubscriber\EventSubscriber as StanfordEventSubscriber;
use Drupal\user\Entity\Role;
use Drupal\trustee_profile\EventSubscriber\StanfordProfileEventSubscriber;
use GuzzleHttp\ClientInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
Expand All @@ -22,9 +21,6 @@

/**
* Class EventSubscriberTest.
*
* @group trustee_profile
* @coversDefaultClass \Drupal\trustee_profile\EventSubscriber\EventSubscriber
*/
class EventSubscriberTest extends KernelTestBase {

Expand All @@ -51,7 +47,7 @@ class EventSubscriberTest extends KernelTestBase {
/**
* Event subscriber object.
*
* @var \Drupal\trustee_profile\EventSubscriber\EventSubscriber
* @var \Drupal\trustee_profile\EventSubscriber\StanfordProfileEventSubscriber
*/
protected $eventSubscriber;

Expand Down
2 changes: 0 additions & 2 deletions tests/src/Kernel/Plugin/InstallTask/RouteRebuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

/**
* Class RouteRebuilderTest.
*
* @coversDefaultClass \Drupal\trustee_profile\Plugin\InstallTask\RouteRebuilder
*/
class RouteRebuilderTest extends KernelTestBase {

Expand Down
2 changes: 0 additions & 2 deletions tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

/**
* Class SiteSettingsTest.
*
* @coversDefaultClass \Drupal\trustee_profile\Plugin\InstallTask\SiteSettings
*/
class SiteSettingsTest extends KernelTestBase {

Expand Down
2 changes: 0 additions & 2 deletions tests/src/Kernel/Plugin/InstallTask/UsersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

/**
* Class UsersTest.
*
* @coversDefaultClass \Drupal\trustee_profile\Plugin\InstallTask\Users
*/
class UsersTest extends KernelTestBase {

Expand Down
3 changes: 0 additions & 3 deletions tests/src/Kernel/StanfordProfilePermissionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

/**
* Class StanfordProfilePermissionsTest.
*
* @group trustee_profile
* @coversDefaultClass \Drupal\trustee_profile\StanfordProfilePermissions
*/
class StanfordProfilePermissionsTest extends KernelTestBase {

Expand Down
3 changes: 0 additions & 3 deletions tests/src/Unit/Config/ConfigOverridesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@

/**
* Class ConfigOverridesTest
*
* @group trustee_profile
* @coversDefaultClass \Drupal\trustee_profile\Config\ConfigOverrides
*/
class ConfigOverridesTest extends UnitTestCase {

Expand Down
4 changes: 0 additions & 4 deletions tests/src/Unit/Plugin/HelpSection/ProfileHelpSectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\Utility\LinkGeneratorInterface;
use Drupal\trustee_profile\Plugin\HelpSection\ProfileConnectSection;
use Drupal\trustee_profile\Plugin\HelpSection\ProfileHelpSection;
use Drupal\Tests\UnitTestCase;

/**
* Class ProfileConnectSectionTest
*
* @group trustee_profile
* @coversDefaultClass \Drupal\trustee_profile\Plugin\HelpSection\ProfileHelpSection
*/
class ProfileHelpSectionTest extends UnitTestCase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\Utility\LinkGeneratorInterface;
use Drupal\trustee_profile\Plugin\HelpSection\ProfileConnectSection;
use Drupal\trustee_profile\Plugin\HelpSection\ProfileHelpMaintainingSection;
use Drupal\Tests\UnitTestCase;

/**
* Class ProfileMaintainingSectionTest
*
* @group trustee_profile
* @coversDefaultClass \Drupal\trustee_profile\Plugin\HelpSection\ProfileConnectSection
*/
class ProfileMaintainingSectionTest extends UnitTestCase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\Utility\LinkGeneratorInterface;
use Drupal\trustee_profile\Plugin\HelpSection\ProfileConnectSection;
use Drupal\trustee_profile\Plugin\HelpSection\ProfileResourceSection;
use Drupal\Tests\UnitTestCase;

/**
* Class ProfileConnectSectionTest
*
* @group trustee_profile
* @coversDefaultClass \Drupal\trustee_profile\Plugin\HelpSection\ProfileResourceSection
*/
class ProfileResourceSectionTest extends UnitTestCase {

Expand Down
4 changes: 2 additions & 2 deletions themes/trustee_subtheme/trustee_subtheme.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Trustee Subtheme
type: theme
description: 'Stanford Board of Trustees Subtheme.'
package: Stanford
version: 9.x-1.0-dev
core_version_requirement: ^9 || ^10
version: 6.0.0
core_version_requirement: ^11
base theme: stanford_basic
libraries:
- trustee_subtheme/allpages
Expand Down
2 changes: 1 addition & 1 deletion trustee_profile.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
class: Drupal\trustee_profile\InstallTaskManager
parent: default_plugin_manager
trustee_profile.event_subscriber:
class: '\Drupal\trustee_profile\EventSubscriber\EventSubscriber'
class: '\Drupal\trustee_profile\EventSubscriber\StanfordProfileEventSubscriber'
arguments: ['@file_system', '@http_client', '@logger.factory', '@messenger']
tags:
- { name: 'event_subscriber' }
Expand Down
Loading