You can make HTTP requests in #Drupal Kernel tests! Your tests run faster and are easier to debug! I've updated the documentation page on it https://www.drupal.org/docs/develop/automated-testing/phpunit-in-drupal/making-http-requests-programmatically-in-kernel-tests and you can also read my block post for an overview: https://www.noreiko.com/blog/speed-your-phpunit-browser-tests-one-trick #PHPUnit #ttd
Making HTTP requests programmatically in Kernel tests

HTTP requests using drupalGet() While in general, Functional tests are designed for the testing of page loads, it's possible to test these in Kernel tests too. The advantage is that Kernel tests are much faster to run, because they only set up what they need to. The faster running time is particularly useful if many different combinations need to be tested for. The trade-off is that some aspects of the Drupal site are not available, such as form submissions and session handling, and that more set-up is required (but you only set up the elements the test needs).

Drupal.org

๐Ÿ“ข Heavy rush at Tirumala (21st May 2026)

๐Ÿ•‘SSD ( Free darshan with token) - 4 to 7 hrs

๐Ÿ•“Sarva Darshan ( Free darshan without token) - 30 hrs

๐Ÿ•ฅRs. 300 Special entry darshan - 4 to 5 hrs

#tirumala #tirupati #ttd #tirupatitirumalainfo #tirumaladarshan #tirupatidarshan

Title: P2: Object-Oriented Design and Mocking TDD nil

you design objects like big isolated containers, this slow down
refactoring which require 1) to split code actively to more specific
parts 2) collect them again in better ones.

Tests as additional dependency, coupled with code.

Conclusion: balance, balance, balance.

Links:
- Test-Driven Development paper "Mock Roles, Not Objects" by Steve Freeman, Nat Pryce, Tim Mackinnon, Joe Walnes. #dailyreport #progrmming #OOP #TTD #mockobject

Title: P1: Object-Oriented Design and Mocking TDD nil

5) Be explicit about things that should not happen. Not only that save() happened BUT also that delete() did not.
6) Percentage of coverage should be balanced
Pros of tests:

Writing tests provides a framework to think about functionality, not state.

Amplifies problems such as tight coupling. It is motivator for improving the design

Cons of test: #dailyreport #progrmming #OOP #TTD #mockobject

Title: P0: Object-Oriented Design and Mocking TDD nil

1) Dont use getters or "Tell, Don't Ask."
- Instead of if (account.getBalance() > 100), you write account.debitIfAffordable(100).
2) dont do mock.getA().getB().doSomething()
3) You should almost always mock an Interface, not a concrete Class
4) You shouldn't mock third-party libraries #dailyreport #progrmming #OOP #TTD #mockobject

Narayanavanama Sri Kalyana Venkateswara Swamy Vari Brahmotsavams will be observed from 27th May 2026 to 5th June 2026.

Garuda Vahanam - 1st June

About Temple Timings and Sevas : https://tirupatitirumalainfo.com/narayanavanam/

#narayanavanam #ttd #brahmotsavams #venkateswaraswamy

๐Ÿ•‰๏ธ Pavitrotsavam โ€“ Tirumala
โœจ Festival of Purification
๐Ÿ“… 3 Days in Shravana (23-08-26 to 25-08-26)
๐ŸŽŸ๏ธ Tickets: Pavitrotsavam Seva tickets will be released on May 21st at 10AM
โ‚น2,500 per person (can participate in seva for 4 times and darshan also will be provided for 4 times).
๐Ÿ“Œ 600 tickets released daily by TTD
๐Ÿ•– Reporting: 7:00 AM at Vaikuntam 1
๐Ÿ‘• Traditional dress + Photo ID mandatory

More Details : https://tirupatitirumalainfo.com/pavitrotsavas-at-tirumala/
#tirupati #tirumala #ttd

Fodder Flow for TTD's Herd

Nearly 3,000 cows in Tirupati will be fed with 1,600 tonnes of dry fodder donated by two NGOs to TTD cow shelters.

#Tirupati #CowDonation #AnimalWelfare #TTD #Fodder

https://newsletter.tf/1600-tonnes-fodder-for-ttd-cows-tirupati/

1,600 tonnes of fodder reach TTD cow shelters in Tirupati

Nearly 3,000 cows in Tirupati will be fed with 1,600 tonnes of dry fodder donated by two NGOs to TTD cow shelters.

NewsletterTF