Magento 2 Unit and Integration Testing - 29 May / 30 May 2024 (2 days)

In stock
SKU
t206
€790.00

Whenever you have business critical code in a live environment, like with a webshop, it is vital to make sure that bugs don't end up in production. Even more important, you don't want bugs to occur twice. Testing is the key. However, to get started with testing, you will first of all need a bit guidance. Second, you also need to get used to the right flow. This training helps you to get into the habit of writing unit tests, integration tests and functional tests.

  • Courses included: 1

Increase your code quality by writing tests

Most developers know that tests have benefits. But it always takes some time to get started with this habit. And then still, it is important to know the tricks to avoid getting stuck. This Yireo training helps you to get started with unit tests and integration tests. This includes basics like setup, stubbing and mocking. But this also includes advanced configurations for integrating tests, common scenarios and troubleshooting help. If you want to get started with testing efficiently, this is not to be missed.
More Information
Price €790.00
Starting date May 29, 2024
Ending Date May 30, 2024

Included courses

Magento 2 Unit, Integration and Functional Testing

Status: Complete
Last updated: 2024-04-19
Number of lessons: 62
Number of slides: 167
Videos: 0 hours

Preview this course

Want to see what this course is like? Checkout our Courseware Demo to preview this course and others.

Preview all courses

Course content

Magento 2 Unit, Integration and Functional Testing

  • Testing overview
  • Testing strategies
  • Why testing?
  • TDD
  • Types of testing
  • Overview of testing
  • Organizing your tests
  • Running tests from PHPStorm
  • 02-code-quality
  • Defensive programming
  • DRY principle
  • Object Calisthenics
  • SOLID principles
  • Law of Demeter
  • Tell don't ask
  • Static code analysis
  • Unit tests
  • Basics of unit testing
  • Example unit test
  • Unit testing katas
  • Unit Tests
  • Using `dev/tests/unit/phpunit.xml.dist`
  • Stubs vs mocks vs dummies
  • MockBuilder
  • Testing exceptions
  • Data providers in tests
  • Spying with PHPUnit
  • Integration Tests
  • Overview of Integration Tests
  • Setting up integration tests
  • Running Integration Tests
  • Integration testing
  • Which ObjectManager?
  • Tips for integration tests
  • Magento annotations
  • Fixtures
  • Integration Tests with Warden
  • Minimizing modules that are enabled
  • Troubleshooting integration tests
  • Advanced topics
  • Testing events and observers
  • Integration Test scenarios
  • Testing module behaviour
  • Testing controllers
  • Testing the layout
  • Testing sessions
  • Testing entities
  • Refactoring legacy code
  • What is legacy code?
  • Refactoring with tests
  • Strangler fig pattern
  • Refactoring with TDD
  • Different testing types for legacy code
  • Characterization tests
  • Code coverage
  • 08-integration-test-performance
  • Performance overview
  • Yireo Integration Test Helper
  • Using tmpfs to speed up Integration Tests
  • Live Tests
  • Overview of Live Tests
  • Setup of live tests
  • Using the ProductRepository in a functional test
  • Functional Tests following Magento
  • API Functional Testing
  • MFTF
  • Magento Functional Testing Framework (MFTF)
  • 14-cicd
  • PHP linting
  • GitHub Actions
  • End-to-End testing
  • An overview of End-to-End testing
  • Cypress