Commit graph

3 commits

Author SHA1 Message Date
James D. Forrester
35b2542895 Namespace includes/cache
Bug: T353458
Change-Id: Ic3f3168ef17113f5fb3ec11e0a47f52d65eefba9
2024-02-20 10:28:03 -05:00
Timo Tijhof
0ca2b996b7 CommentFormatter: Clean up CommentParserFactoryTest
* Widen `@covers` annotation to at least the subject class.
  Ref https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Cite/+/982945
  Ref https://gerrit.wikimedia.org/r/q/owner:Krinkle+is:merged+message:%2522Widen%2522

* Remove useless test for private properties existing, which
  is implementation detail of no interest to whether the class is
  working correctly or not.

* Given no assertions exist, combine testCreate()

This commit removes use of deprecated assertObjectHasAttribute, hence
tagging as T342110.

Bug: T342110
Needed-By: Id708a7716505ffce26c8eb438a98d74195682e91
Change-Id: Id7a7593b41afef89fd02af070bdf760baddd2c30
2024-02-13 19:13:37 +00:00
Doğu Abaris
f03e49c177 Add PHPUnit tests for CommentParserFactory
Adds tests for \MediaWiki\CommentFormatter\CommentParserFactory
The test suite includes the following validations:
- Tests constructor for property initialization.
- Tests create method for proper initialization.

Change-Id: I8c66ebaeeccb320c439ef4c879440d7b3e1233dd
2024-02-08 20:39:22 +00:00