phyzical

but why test something that would never be used?

Zazama

Is there a way, in a functional test, to send a get request to a controller without predefined routes? Let's say I have a module only containing VerificationController.php and there are no routes set in the config.yml, how would I test requests for the controller?

kinglozzer

I’ve not tested that though, so it may not work 🙂

kinglozzer

In theory, you could pass a source like

  1. [
  2. 'key' => DBField::create_field('HTMLFragment', '<strong>something bold</strong>')
  3. ]

👍 (1)
Lorrain Fontaine

Hey everyone. Does anyone know if there is a possibility to add html tags in the $source of an OptionsetField ?

Bjorn Bojumble

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ASC AS "_SortColumn1"

taoceanz

I found Config::Inst()->get(MyClass::class, 'property'); would fail if the property didn't exist.

Oh yeah, good point about the dev build. If the table doesn't exist, return what the table should be.