From 3fecd35d1c2ef78b781d7a45c0ec3fbb23c21bdf Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 27 Jan 2024 07:45:05 +0000 Subject: [PATCH] Rename example to atdc --- .../{example/example.info.yml => atdc/atdc.info.yml} | 0 .../example.routing.yml => atdc/atdc.routing.yml} | 4 ++-- .../example.services.yml => atdc/atdc.services.yml} | 2 +- .../modules/atdc_test/atdc_test.info.yml} | 0 .../config/install/field.field.node.post.field_tags.yml | 0 .../config/install/field.storage.node.field_tags.yml | 0 .../modules/atdc_test}/config/install/node.type.post.yml | 0 .../custom/{example => atdc}/src/Builder/PostBuilder.php | 2 +- .../src/Controller/BlogPageController.php | 4 ++-- web/modules/custom/{example => atdc}/src/PostWrapper.php | 2 +- .../src/Repository/PostNodeRepository.php | 2 +- .../tests/src/Functional/BlogPageTest.php | 6 +++--- .../tests/src/Functional/ExampleTest.php | 2 +- .../tests/src/Kernel/Builder/PostBuilderTest.php | 8 ++++---- .../tests/src/Kernel/PostNodeRepositoryTest.php | 8 ++++---- .../tests/src/Unit/PostNodeRepositoryUnitTest.php | 4 ++-- .../{example => atdc}/tests/src/Unit/PostWrapperTest.php | 6 +++--- 17 files changed, 25 insertions(+), 25 deletions(-) rename web/modules/custom/{example/example.info.yml => atdc/atdc.info.yml} (100%) rename web/modules/custom/{example/example.routing.yml => atdc/atdc.routing.yml} (54%) rename web/modules/custom/{example/example.services.yml => atdc/atdc.services.yml} (53%) rename web/modules/custom/{example/modules/example_test/example_test.info.yml => atdc/modules/atdc_test/atdc_test.info.yml} (100%) rename web/modules/custom/{example/modules/example_test => atdc/modules/atdc_test}/config/install/field.field.node.post.field_tags.yml (100%) rename web/modules/custom/{example/modules/example_test => atdc/modules/atdc_test}/config/install/field.storage.node.field_tags.yml (100%) rename web/modules/custom/{example/modules/example_test => atdc/modules/atdc_test}/config/install/node.type.post.yml (100%) rename web/modules/custom/{example => atdc}/src/Builder/PostBuilder.php (97%) rename web/modules/custom/{example => atdc}/src/Controller/BlogPageController.php (88%) rename web/modules/custom/{example => atdc}/src/PostWrapper.php (93%) rename web/modules/custom/{example => atdc}/src/Repository/PostNodeRepository.php (94%) rename web/modules/custom/{example => atdc}/tests/src/Functional/BlogPageTest.php (93%) rename web/modules/custom/{example => atdc}/tests/src/Functional/ExampleTest.php (96%) rename web/modules/custom/{example => atdc}/tests/src/Kernel/Builder/PostBuilderTest.php (94%) rename web/modules/custom/{example => atdc}/tests/src/Kernel/PostNodeRepositoryTest.php (87%) rename web/modules/custom/{example => atdc}/tests/src/Unit/PostNodeRepositoryUnitTest.php (95%) rename web/modules/custom/{example => atdc}/tests/src/Unit/PostWrapperTest.php (87%) diff --git a/web/modules/custom/example/example.info.yml b/web/modules/custom/atdc/atdc.info.yml similarity index 100% rename from web/modules/custom/example/example.info.yml rename to web/modules/custom/atdc/atdc.info.yml diff --git a/web/modules/custom/example/example.routing.yml b/web/modules/custom/atdc/atdc.routing.yml similarity index 54% rename from web/modules/custom/example/example.routing.yml rename to web/modules/custom/atdc/atdc.routing.yml index 0077a11..6d3a67b 100644 --- a/web/modules/custom/example/example.routing.yml +++ b/web/modules/custom/atdc/atdc.routing.yml @@ -1,7 +1,7 @@ -example.blog: +atdc.blog: path: /blog defaults: - _controller: Drupal\example\Controller\BlogPageController + _controller: Drupal\atdc\Controller\BlogPageController _title: Blog requirements: _permission: access content diff --git a/web/modules/custom/example/example.services.yml b/web/modules/custom/atdc/atdc.services.yml similarity index 53% rename from web/modules/custom/example/example.services.yml rename to web/modules/custom/atdc/atdc.services.yml index e5c0402..ab3d25e 100644 --- a/web/modules/custom/example/example.services.yml +++ b/web/modules/custom/atdc/atdc.services.yml @@ -1,4 +1,4 @@ services: - Drupal\example\Repository\PostNodeRepository: + Drupal\atdc\Repository\PostNodeRepository: arguments: - '@entity_type.manager' diff --git a/web/modules/custom/example/modules/example_test/example_test.info.yml b/web/modules/custom/atdc/modules/atdc_test/atdc_test.info.yml similarity index 100% rename from web/modules/custom/example/modules/example_test/example_test.info.yml rename to web/modules/custom/atdc/modules/atdc_test/atdc_test.info.yml diff --git a/web/modules/custom/example/modules/example_test/config/install/field.field.node.post.field_tags.yml b/web/modules/custom/atdc/modules/atdc_test/config/install/field.field.node.post.field_tags.yml similarity index 100% rename from web/modules/custom/example/modules/example_test/config/install/field.field.node.post.field_tags.yml rename to web/modules/custom/atdc/modules/atdc_test/config/install/field.field.node.post.field_tags.yml diff --git a/web/modules/custom/example/modules/example_test/config/install/field.storage.node.field_tags.yml b/web/modules/custom/atdc/modules/atdc_test/config/install/field.storage.node.field_tags.yml similarity index 100% rename from web/modules/custom/example/modules/example_test/config/install/field.storage.node.field_tags.yml rename to web/modules/custom/atdc/modules/atdc_test/config/install/field.storage.node.field_tags.yml diff --git a/web/modules/custom/example/modules/example_test/config/install/node.type.post.yml b/web/modules/custom/atdc/modules/atdc_test/config/install/node.type.post.yml similarity index 100% rename from web/modules/custom/example/modules/example_test/config/install/node.type.post.yml rename to web/modules/custom/atdc/modules/atdc_test/config/install/node.type.post.yml diff --git a/web/modules/custom/example/src/Builder/PostBuilder.php b/web/modules/custom/atdc/src/Builder/PostBuilder.php similarity index 97% rename from web/modules/custom/example/src/Builder/PostBuilder.php rename to web/modules/custom/atdc/src/Builder/PostBuilder.php index 4eaea29..9f93e4c 100644 --- a/web/modules/custom/example/src/Builder/PostBuilder.php +++ b/web/modules/custom/atdc/src/Builder/PostBuilder.php @@ -1,6 +1,6 @@ drupalGet('/blog'); diff --git a/web/modules/custom/example/tests/src/Functional/ExampleTest.php b/web/modules/custom/atdc/tests/src/Functional/ExampleTest.php similarity index 96% rename from web/modules/custom/example/tests/src/Functional/ExampleTest.php rename to web/modules/custom/atdc/tests/src/Functional/ExampleTest.php index 259fdc8..54fa876 100644 --- a/web/modules/custom/example/tests/src/Functional/ExampleTest.php +++ b/web/modules/custom/atdc/tests/src/Functional/ExampleTest.php @@ -1,6 +1,6 @@ installEntitySchema(entity_type_id: 'taxonomy_term'); $this->installConfig(modules: [ - 'example_test', + 'atdc_test', ]); $node = PostBuilder::create() diff --git a/web/modules/custom/example/tests/src/Kernel/PostNodeRepositoryTest.php b/web/modules/custom/atdc/tests/src/Kernel/PostNodeRepositoryTest.php similarity index 87% rename from web/modules/custom/example/tests/src/Kernel/PostNodeRepositoryTest.php rename to web/modules/custom/atdc/tests/src/Kernel/PostNodeRepositoryTest.php index 8e3349d..cabece9 100644 --- a/web/modules/custom/example/tests/src/Kernel/PostNodeRepositoryTest.php +++ b/web/modules/custom/atdc/tests/src/Kernel/PostNodeRepositoryTest.php @@ -1,9 +1,9 @@ 'post']); + $node = $this->createMock(NodeInterface::class); $node->method('bundle')->willReturn('post'); $wrapper = new PostWrapper($node);