CREATE TRIGGER . Purpose. Use the CREATE TRIGGER statement to create and enable a database trigger, which is: A stored PL/SQL block associated with a table, a schema, or the database or. An anonymous PL/SQL block or a call to a procedure implemented in PL/SQL or Java. Oracle Database automatically executes a trigger when specified conditions occur. To simulate user input, the inputTitleEl constant references a mock < lightning-input > element provided by sfdx-lwc-jest. We can still query for it in the DOM and dispatch an event from it to invoke the change handler we wired up to it. We use a mock component to maintain control over the input values since we only want to test the behavior of the notification.